(page: Page)
| 23 | ); |
| 24 | |
| 25 | const openLanguageMenu = async (page: Page) => { |
| 26 | const button = page.getByRole('button', { |
| 27 | name: locators.languageDropdownName, |
| 28 | }); |
| 29 | const selector = `[aria-labelledby=${await button.getAttribute('id')}]`; |
| 30 | await button.click(); |
| 31 | |
| 32 | await page.waitForSelector(selector); |
| 33 | return page.locator(selector); |
| 34 | }; |
| 35 | |
| 36 | const verifyTranslation = async (page: Page, locale: Locale | string) => { |
| 37 | // Load locale data if string code provided (e.g., 'es', 'fr') |
no outgoing calls
no test coverage detected