Skip to content

Commit

Permalink
Adds updates the tests with a click
Browse files Browse the repository at this point in the history
  • Loading branch information
dakota002 committed Dec 10, 2024
1 parent 1a41ef0 commit 489723d
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 489723d

Please sign in to comment.