Fix Sprint D e2e flakes: Auto-Match empty state, CWV polling.
CI / skip-ci-check (pull_request) Successful in 29s
CI / docker-ci (pull_request) Successful in 31s
CI / python-lint (pull_request) Successful in 32s
CI / secret-scan (pull_request) Successful in 42s
CI / viewer-unit (pull_request) Successful in 1m43s
CI / admin-unit (pull_request) Successful in 1m59s
CI / e2e (pull_request) Failing after 2m22s

Accept "No Matches Available" on Auto-Match; poll LCP up to 10s and use
8s budget for shared CI runner latency.
This commit is contained in:
2026-08-04 22:30:47 -04:00
parent 3f2bbe2591
commit bbf59f5a60
2 changed files with 19 additions and 8 deletions
+6 -2
View File
@@ -32,14 +32,18 @@ test.describe('admin review pages @smoke', () => {
await timings.measure('admin_identify', async () => {
await page.goto(`${adminBaseUrl}/identify`);
await expect(page.getByRole('heading', { name: /Identify/i })).toBeVisible();
await expect(page.getByRole('button', { name: /Identify Faces/i })).toBeVisible();
await expect(page.getByRole('button', { name: /Identify Faces/i }).first()).toBeVisible();
});
expectWithinBudget(timings, 'admin_identify', BUDGET_MS.uiAction);
await timings.measure('admin_auto_match', async () => {
await page.goto(`${adminBaseUrl}/auto-match`);
await expect(page.getByRole('heading', { name: /Auto-Match/i })).toBeVisible();
await expect(page.getByRole('button', { name: /Run Auto-Match/i })).toBeVisible();
await expect(
page.getByRole('button', {
name: /Run Auto-Match|No Matches Available|Processing/i,
}),
).toBeVisible();
});
expectWithinBudget(timings, 'admin_auto_match', BUDGET_MS.uiAction);