From 3359bb48a4b13168e88f44e0c84a4599555b24a5 Mon Sep 17 00:00:00 2001 From: Jakub Mucha Date: Sat, 5 Nov 2022 00:32:06 +0000 Subject: [PATCH] add waiting for button to improve stability in notification Signed-off-by: Jakub Mucha --- commands/playwright.js | 1 + 1 file changed, 1 insertion(+) diff --git a/commands/playwright.js b/commands/playwright.js index 5e8299998..052e96ab5 100644 --- a/commands/playwright.js +++ b/commands/playwright.js @@ -253,6 +253,7 @@ module.exports = { await page.waitForLoadState('load'); await page.waitForLoadState('domcontentloaded'); await page.waitForLoadState('networkidle'); + await module.exports.waitFor(notificationPageElements.anyButton, page); } await metamaskWindow.waitForLoadState('load'); await metamaskWindow.waitForLoadState('domcontentloaded');