From b825d6fc367db6c17371c746b7b4f9c075b610d0 Mon Sep 17 00:00:00 2001 From: Jakub Mucha Date: Wed, 10 Mar 2021 20:38:46 +0100 Subject: [PATCH] fix: wait for popup reload after fee change Signed-off-by: Jakub Mucha --- commands/metamask.js | 2 ++ 1 file changed, 2 insertions(+) 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,