Fix admin e2e selectors for Sign in / Log out copy.
CI / skip-ci-check (pull_request) Successful in 30s
CI / python-lint (pull_request) Successful in 31s
CI / docker-ci (pull_request) Successful in 32s
CI / secret-scan (pull_request) Successful in 38s
CI / viewer-unit (pull_request) Successful in 1m43s
CI / e2e (pull_request) Successful in 1m51s
CI / admin-unit (pull_request) Successful in 1m58s

This commit is contained in:
2026-08-05 14:17:25 -04:00
parent 32e5fc1974
commit adb898462b
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ export class AdminLoginPage {
async signIn(username: string, password: string): Promise<void> {
await this.page.locator('#username').fill(username);
await this.page.locator('#password').fill(password);
await this.page.getByRole('button', { name: /^Login$/i }).click();
await this.page.getByRole('button', { name: /^(Login|Sign in)$/i }).click();
await this.page.waitForURL((url) => !url.pathname.endsWith('/login'), { timeout: 30_000 });
}
}