From 404caa89af184ffd06f14d7207d01049b643f01f Mon Sep 17 00:00:00 2001 From: Jakub Adamczyk Date: Thu, 17 Oct 2024 13:17:43 +0200 Subject: [PATCH] wait until window is stable when onboarding metamask --- commands/metamask.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/commands/metamask.js b/commands/metamask.js index 948b9bbe..bb123310 100644 --- a/commands/metamask.js +++ b/commands/metamask.js @@ -325,6 +325,10 @@ const metamask = { waitForEvent: 'navi', }, ); + await playwright.waitUntilWindowIsStable( + PROVIDER, + await playwright.windows(PROVIDER), + ); await playwright.waitAndClick( PROVIDER, endOfFlowPageElements.allDoneButton,