import{defineConfig,devices}from"playwright/test"; export default defineConfig({testDir:"./tests/e2e",fullyParallel:false,timeout:45_000,expect:{timeout:8_000},retries:1,workers:1,reporter:[["list"],["html",{outputFolder:"reports/playwright",open:"never"}]],use:{baseURL:"http://localhost:4173",trace:"retain-on-failure",screenshot:"only-on-failure",video:"retain-on-failure",navigationTimeout:15_000,actionTimeout:8_000},projects:[{name:"chromium",use:{...devices["Desktop Chrome"]}},{name:"mobile-chromium",use:{...devices["Pixel 7"]},testMatch:/public-and-auth\.spec\.ts/}],webServer:{command:"npm run dev -- -p 4173",url:"http://localhost:4173",reuseExistingServer:false,timeout:120_000,env:{ASTRAIL_REQUIRE_AUTH:"false",NEXT_PUBLIC_ASTRAIL_ALLOW_DEMO_AUTH:"true",NEXT_PUBLIC_APP_URL:"http://localhost:4173",NEXT_PUBLIC_RUNTIME_BASE_URL:"http://localhost:4173"}}});