Skip to content

Commit

Permalink
Merge pull request #2779 from dakota002/PlaywrightUpdate
Browse files Browse the repository at this point in the history
General fix for fails in finding and selecting an option
  • Loading branch information
dakota002 authored Dec 12, 2024
2 parents c7607d5 + 6fcfd20 commit 0930eb2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions __playwright__/circulars/archive.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ test.describe('Circulars archive page', () => {
}) => {
await page.goto('/circulars')
for (const expectedResultsPerPage of [10, 20]) {
await page
.getByTitle('Number of results per page')
.selectOption({ label: `${expectedResultsPerPage} / page` })
const locator = page.getByTestId('Select')
await expect(locator).toBeVisible()
await locator.click()
await locator.selectOption(`${expectedResultsPerPage} / page`)
await page.waitForFunction(
(n) =>
document.getElementsByTagName('ol')[0].getElementsByTagName('li')
Expand Down

0 comments on commit 0930eb2

Please sign in to comment.