From 16381994b7a36cb3456e21d6d59d2cac058e3b4e Mon Sep 17 00:00:00 2001 From: Fraz Arshad Date: Tue, 5 Mar 2024 19:37:48 +0500 Subject: [PATCH] chore: fixes for await async --- commands/keplr.js | 4 ++-- tests/e2e/specs/keplr/keplr-spec.js | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/commands/keplr.js b/commands/keplr.js index 54e94bbfd..7ebbd9474 100644 --- a/commands/keplr.js +++ b/commands/keplr.js @@ -250,11 +250,11 @@ const keplr = { async switchWallet({ walletName }) { await module.exports.switchToKeplrIfNotActive(); - module.exports.goToWalletsPage(); + await module.exports.goToWalletsPage(); await playwright.waitAndClickByText( walletName, - await playwright.keplrWindow(), + playwright.keplrWindow(), true, ); await playwright.switchToCypressWindow(); diff --git a/tests/e2e/specs/keplr/keplr-spec.js b/tests/e2e/specs/keplr/keplr-spec.js index fe0c423bf..ddab9eeb2 100644 --- a/tests/e2e/specs/keplr/keplr-spec.js +++ b/tests/e2e/specs/keplr/keplr-spec.js @@ -67,6 +67,7 @@ describe('Keplr', () => { it(`should complete Keplr setup by importing the wallet using private key`, () => { cy.setupWallet( 'A9C09B6E4AF70DE1F1B621CB1AA66CFD0B4AA977E4C18497C49132DD9E579485', + null, false, 'My wallet 3', ).then(setupFinished => {