From f986eb85e8b5b1549d3636cd0100de6cc9aeab43 Mon Sep 17 00:00:00 2001 From: MartinBraquet Date: Sun, 5 Apr 2026 14:43:17 +0200 Subject: [PATCH] Wait for URL navigation after key interactions in `app.ts` and `homePage.ts` E2E tests. --- tests/e2e/web/pages/app.ts | 2 ++ tests/e2e/web/pages/homePage.ts | 1 + 2 files changed, 3 insertions(+) diff --git a/tests/e2e/web/pages/app.ts b/tests/e2e/web/pages/app.ts index d8ed56c3..b8da1c11 100644 --- a/tests/e2e/web/pages/app.ts +++ b/tests/e2e/web/pages/app.ts @@ -1,4 +1,5 @@ import {Page} from '@playwright/test' + import {UserAccountInformation} from '../utils/accountInformation' import {AuthPage} from './authPage' import {ComatibilityPage} from './compatibilityPage' @@ -71,5 +72,6 @@ export class App { await this.auth.fillEmailField(email) await this.auth.fillPasswordField(resolvedPassword) await this.auth.clickSignInWithEmailButton() + await this.page.waitForURL('/') } } diff --git a/tests/e2e/web/pages/homePage.ts b/tests/e2e/web/pages/homePage.ts index 1d42c5c4..bcca1a5e 100644 --- a/tests/e2e/web/pages/homePage.ts +++ b/tests/e2e/web/pages/homePage.ts @@ -125,6 +125,7 @@ export class HomePage { async clickSettingsLink() { await expect(this.sidebarSettings).toBeVisible() await this.sidebarSettings.click() + await this.page.waitForURL('/settings') } async clickPeopleLink() {