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