Skip to content

Commit

Permalink
chore: await/async fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
frazarshad committed Mar 6, 2024
1 parent 31e13e7 commit a76baae
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions commands/keplr.js
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ const keplr = {
},

async switchWallet({ walletName }) {
const originalURL = (await playwright.keplrWindow()).url();
const originalURL = playwright.keplrWindow().url();
await module.exports.switchToKeplrIfNotActive();
await module.exports.goToWalletsPage();

Expand All @@ -294,12 +294,12 @@ const keplr = {
await playwright.waitAndClickByText(homePageElements.newTokensFound);
await playwright.waitAndClick(
homePageElements.selectAllTokensCheck,
await playwright.keplrWindow(),
playwright.keplrWindow(),
{ number: -1, force: true },
);
await playwright.waitAndClickByText(
homePageElements.addChainsButton,
await playwright.keplrWindow(),
playwright.keplrWindow(),
true,
);
await playwright.switchToCypressWindow();
Expand All @@ -308,7 +308,7 @@ const keplr = {
},

async getTokenAmount({ tokenName }) {
module.exports.switchToKeplrIfNotActive();
await module.exports.switchToKeplrIfNotActive();
await module.exports.goToHome();

const tokenLabel = await playwright.waitFor(
Expand Down

0 comments on commit a76baae

Please sign in to comment.