Fix gallery result-count regex for "Showing X of Y photos".
CI / skip-ci-check (pull_request) Successful in 29s
CI / docker-ci (pull_request) Successful in 32s
CI / python-lint (pull_request) Successful in 32s
CI / secret-scan (pull_request) Successful in 38s
CI / viewer-unit (pull_request) Successful in 1m50s
CI / admin-unit (pull_request) Successful in 2m3s
CI / e2e (pull_request) Failing after 2m26s

Home gallery uses an "of total" suffix; authed filter e2e failed after /search
redirect unified on /.
This commit is contained in:
2026-08-04 22:59:18 -04:00
parent 5beefbcbc8
commit 5d6404dfe0
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -31,7 +31,7 @@ test.describe('gallery filters (authed) @smoke', () => {
await expect(favoritesCheckbox).toBeChecked();
await expect(page).toHaveURL(/favoritesOnly=true/);
await expect(
page.getByText(/Found \d+ photo|Showing \d+ photo|No photos found/i).first(),
page.getByText(/Found \d+ photo|Showing \d+.*?photo|No photos found/i).first(),
).toBeVisible({ timeout: 20_000 });
// Toggling back off should drop the param again.
@@ -67,7 +67,7 @@ test.describe('gallery filters (authed) @smoke', () => {
await expect(page).toHaveURL(new RegExp(`people=${person.id}(&|$)`));
await expect(
page.getByText(/Found \d+ photo|Showing \d+ photo|No photos found/i).first(),
page.getByText(/Found \d+ photo|Showing \d+.*?photo|No photos found/i).first(),
).toBeVisible({ timeout: 20_000 });
});
});
+1 -1
View File
@@ -158,7 +158,7 @@ test.describe('gallery search filters @smoke', () => {
await expect(page).toHaveURL(new RegExp(`tags=${tag.id}(&|$)`));
await expect(
page.getByText(/Found \d+ photo|Showing \d+ photo|No photos found/i).first(),
page.getByText(/Found \d+ photo|Showing \d+.*?photo|No photos found/i).first(),
).toBeVisible({ timeout: 20_000 });
});
+1 -1
View File
@@ -44,7 +44,7 @@ test.describe('network errors (public pages) @smoke', () => {
await timings.measure('search_tag_filter', async () => {
await page.goto(`${playkitConfig.baseUrl}/?tags=${tag.id}`);
await expect(
page.getByText(/Found \d+ photo|Showing \d+ photo|No photos found/i).first(),
page.getByText(/Found \d+ photo|Showing \d+.*?photo|No photos found/i).first(),
).toBeVisible({ timeout: 20_000 });
});
expectWithinBudget(timings, 'search_tag_filter', BUDGET_MS.uiAction);