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
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:
@@ -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 });
|
||||
});
|
||||
});
|
||||
|
||||
@@ -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 });
|
||||
});
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user