From e65d25a0a76577cfe08335730675d7bc273d9f5e Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Wed, 5 Mar 2025 09:19:40 -0800 Subject: [PATCH] Fix e2e again --- src-ui/e2e/document-list/document-list.spec.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src-ui/e2e/document-list/document-list.spec.ts b/src-ui/e2e/document-list/document-list.spec.ts index 52fabd597..45857bb09 100644 --- a/src-ui/e2e/document-list/document-list.spec.ts +++ b/src-ui/e2e/document-list/document-list.spec.ts @@ -87,9 +87,9 @@ test('date filtering', async ({ page }) => { await page.getByRole('option', { name: 'Within 3 months' }).click() await expect(page.locator('pngx-document-list')).toHaveText(/one document/i) await page - .locator( - 'div:nth-child(2) > .list-group .input-group .ng-select-container > .ng-arrow-wrapper' - ) + .getByRole('menuitem', { name: 'Relative dates' }) + .locator('span') + .first() .click() await page.getByRole('option', { name: 'Within 3 months' }).click() await page.getByLabel('Dates selected').locator('button').first().click()