diff --git a/commands/metamask.js b/commands/metamask.js index b55f155c9..4d4e79c8a 100644 --- a/commands/metamask.js +++ b/commands/metamask.js @@ -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,