diff --git a/e2e/tests/gallery.filters.authed.spec.ts b/e2e/tests/gallery.filters.authed.spec.ts index cfaf52c..b5974f9 100644 --- a/e2e/tests/gallery.filters.authed.spec.ts +++ b/e2e/tests/gallery.filters.authed.spec.ts @@ -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 }); }); }); diff --git a/e2e/tests/gallery.search-filters.spec.ts b/e2e/tests/gallery.search-filters.spec.ts index 3d277c1..d8cf96d 100644 --- a/e2e/tests/gallery.search-filters.spec.ts +++ b/e2e/tests/gallery.search-filters.spec.ts @@ -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 }); }); diff --git a/e2e/tests/network-errors.spec.ts b/e2e/tests/network-errors.spec.ts index 679e52b..d062c55 100644 --- a/e2e/tests/network-errors.spec.ts +++ b/e2e/tests/network-errors.spec.ts @@ -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);