diff --git a/e2e/components/drafts/ActionBar.test.ts b/e2e/components/drafts/ActionBar.test.ts index 96b0b555f5e..675af157ca6 100644 --- a/e2e/components/drafts/ActionBar.test.ts +++ b/e2e/components/drafts/ActionBar.test.ts @@ -41,8 +41,9 @@ test.describe('ActionBar', () => { }, }) - await page.setViewportSize({width: viewports['primer.breakpoint.sm'], height: 768}) - await page.locator('button', {hasText: 'More Comment Box Items'}).waitFor() + await page.setViewportSize({width: viewports['primer.breakpoint.xs'], height: 768}) + const moreButtonSelector = `button[aria-label="More Comment box toolbar items"]` + await page.locator(moreButtonSelector).click() await page.getByText('Saved Replies').click() }) })