Skip to content

Commit

Permalink
Add overflow e2e test to actionbar
Browse files Browse the repository at this point in the history
  • Loading branch information
pksjce committed May 6, 2024
1 parent 22e3782 commit fbdb9a3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions e2e/components/drafts/ActionBar.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
})
})
Expand Down

0 comments on commit fbdb9a3

Please sign in to comment.