Skip to content

Commit

Permalink
fix: wait for popup reload after fee change
Browse files Browse the repository at this point in the history
Signed-off-by: Jakub Mucha <[email protected]>
  • Loading branch information
drptbl committed Mar 10, 2021
1 parent b3c758d commit b825d6f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions commands/metamask.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,8 @@ module.exports = {
confirmPageElements.gasFeeInput,
notificationPage,
);
// metamask reloads popup after changing a fee, you have to wait for this event otherwise transaction will fail
await puppeteer.metamaskWindow().waitForTimeout(3000);
await puppeteer.waitAndClick(
confirmPageElements.confirmButton,
notificationPage,
Expand Down

0 comments on commit b825d6f

Please sign in to comment.