From fbdb9a3d92b8df9dd3c8036edb86b25c4c2db27d Mon Sep 17 00:00:00 2001 From: Pavithra Kodmad Date: Mon, 6 May 2024 20:29:00 +1000 Subject: [PATCH] Add overflow e2e test to actionbar --- e2e/components/drafts/ActionBar.test.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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() }) })