Skip to content

Commit

Permalink
try with waitForTimeout instead
Browse files Browse the repository at this point in the history
  • Loading branch information
jkadamczyk committed Oct 17, 2024
1 parent 404caa8 commit 8d00a41
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
8 changes: 1 addition & 7 deletions commands/metamask.js
Original file line number Diff line number Diff line change
Expand Up @@ -325,17 +325,11 @@ const metamask = {
waitForEvent: 'navi',
},
);
await playwright.waitUntilWindowIsStable(
PROVIDER,
await playwright.windows(PROVIDER),
);
await playwright.windows(PROVIDER).waitForTimeout(2_000);
await playwright.waitAndClick(
PROVIDER,
endOfFlowPageElements.allDoneButton,
await playwright.windows(PROVIDER),
{
waitForEvent: 'navi',
},
);
await playwright.waitAndClick(
PROVIDER,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@phantom/synpress",
"version": "4.0.0-alpha.52",
"version": "4.0.0-alpha.53",
"packageManager": "[email protected]",
"description": "Synpress is e2e testing framework based around Cypress.io & playwright with included MetaMask support. Test your dapps with ease.",
"keywords": [
Expand Down

0 comments on commit 8d00a41

Please sign in to comment.