From 91863825ca7e2f31445225a34b2b70a27ad72f66 Mon Sep 17 00:00:00 2001 From: Armagan Ersoz Date: Fri, 28 Jun 2024 12:53:38 +1000 Subject: [PATCH] update actionbar e2e test selector --- e2e/components/drafts/ActionBar.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/e2e/components/drafts/ActionBar.test.ts b/e2e/components/drafts/ActionBar.test.ts index f7c74f0f750..e48eb4a15a7 100644 --- a/e2e/components/drafts/ActionBar.test.ts +++ b/e2e/components/drafts/ActionBar.test.ts @@ -44,8 +44,8 @@ test.describe('ActionBar', () => { await expect(page.locator(toolbarButtonSelector)).toHaveCount(10) await page.setViewportSize({width: viewports['primer.breakpoint.xs'], height: 768}) await expect(page.locator(toolbarButtonSelector)).toHaveCount(6) - const moreButtonSelector = `button[aria-label="More Comment box toolbar items"]` - await page.locator(moreButtonSelector).click() + const moreButtonSelector = page.getByLabel('More Comment box toolbar items') + await moreButtonSelector.click() await expect(page.locator('ul[role="menu"]>li')).toHaveCount(5) }) })