diff --git a/tests/playwright/pages/PaymentMethodsPage.mjs b/tests/playwright/pages/PaymentMethodsPage.mjs index a034f3660..6dc45d591 100644 --- a/tests/playwright/pages/PaymentMethodsPage.mjs +++ b/tests/playwright/pages/PaymentMethodsPage.mjs @@ -340,9 +340,10 @@ export default class PaymentMethodsPage { // Generic function to be used for simulating the redirect waitForRedirect = async () => { - await Promise.all([ - this.page.waitForNavigation(), - ]); + await this.page.waitForNavigation({ + timeout: 20000, + waitUntil: 'load', + }); }; async continueOnKlarna(skipModal) {