Skip to content

Commit

Permalink
updated test
Browse files Browse the repository at this point in the history
  • Loading branch information
NidhiKJha committed Oct 23, 2024
1 parent b8b0724 commit 0355cf1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/e2e/json-rpc/switchEthereumChain.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ describe('Switch Ethereum Chain for two dapps', function () {
text: 'Confirm',
tag: 'button',
});
await driver.clickElementAndWaitForWindowToClose({
await driver.clickElement({
text: 'Confirm',
tag: 'button',
});
Expand All @@ -245,10 +245,11 @@ describe('Switch Ethereum Chain for two dapps', function () {
text: 'Confirm',
tag: 'button',
});
await driver.clickElement({
await driver.clickElementAndWaitForWindowToClose({
text: 'Confirm',
tag: 'button',
});
await driver.delay(1000);
await driver.switchToWindowWithUrl(DAPP_URL);
await driver.findElement({ css: '#chainId', text: '0x53a' });
},
Expand Down

0 comments on commit 0355cf1

Please sign in to comment.