Wait for URL navigation after key interactions in app.ts and homePage.ts E2E tests.

This commit is contained in:
MartinBraquet
2026-04-05 14:43:17 +02:00
parent 1f988d0f98
commit f986eb85e8
2 changed files with 3 additions and 0 deletions

View File

@@ -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('/')
}
}

View File

@@ -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() {