From 921f7eaee3b77206040118dc0dfdfc9d76a2f9f3 Mon Sep 17 00:00:00 2001 From: Matt Gallo Date: Fri, 17 Jan 2025 10:19:56 -0500 Subject: [PATCH] refactor: use getByLabel, previous selector fails in ci --- e2e/components/Tearsheet/TearsheetNarrow-test.avt.e2e.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/e2e/components/Tearsheet/TearsheetNarrow-test.avt.e2e.js b/e2e/components/Tearsheet/TearsheetNarrow-test.avt.e2e.js index 8bc1bc9dc3..7fce159719 100644 --- a/e2e/components/Tearsheet/TearsheetNarrow-test.avt.e2e.js +++ b/e2e/components/Tearsheet/TearsheetNarrow-test.avt.e2e.js @@ -128,9 +128,7 @@ test.describe('TearsheetNarrow @avt', () => { await expect(page.locator('.decorator-container')).toBeInViewport(); // Selecting the first slug button - const slugButton1 = page - .locator('*[aria-label="AI - Show information"]') - .first(); + const slugButton1 = page.getByLabel('AI - Show information'); const closeButton = page.getByLabel('Close the tearsheet'); const inputField = page.locator('#tss-ft1');