Skip to content

Commit

Permalink
Wait for tx details popup to open
Browse files Browse the repository at this point in the history
  • Loading branch information
duckception committed Sep 7, 2023
1 parent 28b054f commit 2da2ed6
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions commands/metamask.js
Original file line number Diff line number Diff line change
Expand Up @@ -1290,14 +1290,10 @@ const metamask = {
.locator(mainPageElements.activityTab.completedTransaction(txIndex))
.click();

const isPopupVisible = await playwright
await playwright
.metamaskWindow()
.locator(mainPageElements.popup.container)
.isVisible();

if (!isPopupVisible) {
throw new Error('Transaction details popup is not visible.');
}
.waitFor({ state: 'visible', timeout: 10000 });

return true;
},
Expand Down

0 comments on commit 2da2ed6

Please sign in to comment.