diff --git a/playwright-tests/pages/BasePage.ts b/playwright-tests/pages/BasePage.ts index 395d5823..f3746e4c 100644 --- a/playwright-tests/pages/BasePage.ts +++ b/playwright-tests/pages/BasePage.ts @@ -129,6 +129,9 @@ export class BasePage { } async waitForURLToChange(startingUrl: string) { - await this.page.waitForURL(url => url.href !== startingUrl, { timeout: 70_000 }); + await expect(async () => { + const currentUrl = this.page.url(); + expect(currentUrl).not.toEqual(startingUrl); + }).toPass({ timeout: 80_000 }); } } \ No newline at end of file