({
page,
isMobile
}: {
page: Page;
isMobile: boolean;
})
| 2 | import translations from '../client/i18n/locales/english/translations.json'; |
| 3 | |
| 4 | const getSearchInput = async ({ |
| 5 | page, |
| 6 | isMobile |
| 7 | }: { |
| 8 | page: Page; |
| 9 | isMobile: boolean; |
| 10 | }) => { |
| 11 | if (isMobile) { |
| 12 | const menuButton = page.getByRole('button', { |
| 13 | name: translations.buttons.menu |
| 14 | }); |
| 15 | await expect(menuButton).toBeVisible(); |
| 16 | await menuButton.click(); |
| 17 | } |
| 18 | |
| 19 | return page.getByLabel('Search'); |
| 20 | }; |
| 21 | |
| 22 | test.describe('Search bar optimized', () => { |
| 23 | test.beforeEach(async ({ page }) => { |
no outgoing calls
no test coverage detected