import { test } from "@playwright/test"; /** * Set language to English for e2e tests. * E2E tests should only test in English according to requirements. * This is applied globally via test.beforeEach in the setup file. */ test.beforeEach(async ({ context }) => { // Add init script to set English language before any page loads // This must be called before any page.goto() calls await context.addInitScript(() => { if (typeof window !== "undefined") { window.localStorage.setItem("arbret-locale", "en"); } }); });