From 489723d4733dc86e52269f8e8cf05f1c1df3b3f9 Mon Sep 17 00:00:00 2001 From: dakota002 Date: Tue, 10 Dec 2024 16:36:14 -0500 Subject: [PATCH] Adds updates the tests with a click --- __playwright__/circulars/archive.spec.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/__playwright__/circulars/archive.spec.ts b/__playwright__/circulars/archive.spec.ts index c0cc33262..74d2ffd22 100644 --- a/__playwright__/circulars/archive.spec.ts +++ b/__playwright__/circulars/archive.spec.ts @@ -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')