(browser)
| 30 | export const locales = [...nonDomainLocales, ...domainLocales] |
| 31 | |
| 32 | async function addDefaultLocaleCookie(browser) { |
| 33 | // make sure default locale is used in case browser isn't set to |
| 34 | // favor en-US by default, (we use all caps to ensure it's case-insensitive) |
| 35 | await browser.addCookie({ name: 'NEXT_LOCALE', value: 'EN-US' }) |
| 36 | await browser.refresh() |
| 37 | } |
| 38 | |
| 39 | export function runTests(ctx) { |
| 40 | if (ctx.basePath) { |