diff --git a/packages/internal-playwright-helpers/src/pages/cognito.ts b/packages/internal-playwright-helpers/src/pages/cognito.ts index 04242fee..acf1f59a 100644 --- a/packages/internal-playwright-helpers/src/pages/cognito.ts +++ b/packages/internal-playwright-helpers/src/pages/cognito.ts @@ -37,7 +37,7 @@ export class CognitoPage { await this.page.fill(".visible-lg [type=password]", password); await Promise.all([ // It is important to call waitForNavigation before click to set up waiting. - this.page.waitForNavigation(), + this.page.waitForURL(`.*`), // Clicking the link will indirectly cause a navigation. this.page.click(".visible-lg [aria-label=submit]"), ]); diff --git a/packages/internal-playwright-helpers/src/pages/open-id.ts b/packages/internal-playwright-helpers/src/pages/open-id.ts index 8304ee8a..82d5935b 100644 --- a/packages/internal-playwright-helpers/src/pages/open-id.ts +++ b/packages/internal-playwright-helpers/src/pages/open-id.ts @@ -22,7 +22,7 @@ import { Page } from "@playwright/test"; /** - * The Solid-OIDC Broker exposed by ESS wrapped around an underlying OpenID Provider + * The Solid-OIDC Broker exposed by ESS wrapped around an underlying OpenID Provider */ export class OpenIdPage { page: Page; @@ -34,7 +34,7 @@ export class OpenIdPage { async allow() { await Promise.all([ // It is important to call waitForNavigation before click to set up waiting. - this.page.waitForNavigation(), + this.page.waitForURL(`.*`), // Clicking the link will indirectly cause a navigation. this.page.click("text=Allow"), ]); diff --git a/packages/internal-playwright-helpers/src/pages/testPage.ts b/packages/internal-playwright-helpers/src/pages/testPage.ts index dc3e1258..e114f137 100644 --- a/packages/internal-playwright-helpers/src/pages/testPage.ts +++ b/packages/internal-playwright-helpers/src/pages/testPage.ts @@ -44,7 +44,7 @@ export class TestPage { ); await Promise.all([ // It is important to call waitForNavigation before click to set up waiting. - this.page.waitForNavigation(), + this.page.waitForURL(`.*`), // Clicking the link will indirectly cause a navigation. this.page.click(TESTID_SELECTORS.LOGIN_BUTTON), ]);