Skip to content

Commit

Permalink
refactor: use getByLabel, previous selector fails in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewgallo committed Jan 17, 2025
1 parent 31a71ff commit 921f7ea
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions e2e/components/Tearsheet/TearsheetNarrow-test.avt.e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand Down

0 comments on commit 921f7ea

Please sign in to comment.