-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplaywright.config.ts
More file actions
37 lines (35 loc) 路 917 Bytes
/
Copy pathplaywright.config.ts
File metadata and controls
37 lines (35 loc) 路 917 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
25
26
27
28
29
30
31
32
33
34
35
36
37
import { defineConfig, devices } from "@playwright/test";
import path from "node:path";
const port = 3000;
const projectRoot = path.resolve(__dirname);
export default defineConfig({
testDir: "./tests/e2e",
timeout: 30_000,
fullyParallel: true,
reporter: "list",
use: {
baseURL: `http://127.0.0.1:${port}`,
trace: "on-first-retry",
},
webServer: {
command: `pnpm dev --port ${port}`,
cwd: projectRoot,
url: `http://127.0.0.1:${port}`,
timeout: 120_000,
reuseExistingServer: !process.env.CI,
env: {
...process.env,
AUTH_ENABLE_TEST_PROVIDER: "1",
AUTH_SECRET: "playwright-auth-secret",
AUTH_TEST_PASSWORD: "admin-test-password",
ADMIN_ALLOWED_EMAILS: "admin@asu.edu",
NEXT_PUBLIC_SITE_URL: `http://127.0.0.1:${port}`,
},
},
projects: [
{
name: "chromium",
use: { ...devices["Desktop Chrome"] },
},
],
});