-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplaywright.config.js
More file actions
24 lines (23 loc) · 829 Bytes
/
Copy pathplaywright.config.js
File metadata and controls
24 lines (23 loc) · 829 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import { defineConfig, devices } from "@playwright/test";
// Guest-mode smoke test (GitHub #28). Runs against `next dev` with no env vars,
// so the app boots in guest/localStorage mode and the AI advisor exercises its
// demo fallback (no ANTHROPIC_API_KEY).
export default defineConfig({
testDir: "./e2e",
timeout: 90_000, // generous: cold `next dev` route compile + hydration
fullyParallel: true,
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 1 : 0,
reporter: process.env.CI ? "github" : "list",
use: {
baseURL: "http://localhost:3000",
trace: "on-first-retry",
},
projects: [{ name: "chromium", use: { ...devices["Desktop Chrome"] } }],
webServer: {
command: "npm run dev",
url: "http://localhost:3000",
reuseExistingServer: !process.env.CI,
timeout: 120_000,
},
});