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 });
}
}
+2 -2
View File
@@ -45,7 +45,7 @@ test.describe('admin review pages @smoke', () => {
},
);
await page.goto(`${adminBaseUrl}/`);
await expect(page.getByRole('button', { name: 'Logout' })).toBeVisible({
await expect(page.getByRole('button', { name: /Log\s*out/i })).toBeVisible({
timeout: 30_000,
});
});
@@ -75,7 +75,7 @@ test.describe('admin review pages @smoke', () => {
await timings.measure('admin_approve', async () => {
await page.goto(`${adminBaseUrl}/approve-identified`);
await expect(page.getByRole('heading', { name: /Approve Identified/i })).toBeVisible({
await expect(page.getByRole('heading', { name: /Approve Identified|User-identified faces/i })).toBeVisible({
timeout: 20_000,
});
});