-
Notifications
You must be signed in to change notification settings - Fork 1
/
playwright.config.ts
49 lines (48 loc) · 1.08 KB
/
playwright.config.ts
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
38
39
40
41
42
43
44
45
46
47
48
49
import { defineConfig, devices } from "@playwright/test";
export default defineConfig({
testDir: "./e2e",
outputDir: "./node_modules/.cache/playwright",
fullyParallel: true,
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 2 : 0,
reporter: [
["list", { printSteps: true }],
["html", { open: "always" }],
],
use: {
baseURL: "http://linkat.localhost:3000",
video: "on",
trace: "on",
},
projects: [
// https://playwright.dev/docs/auth
{
name: "setup",
testMatch: "global.setup.ts",
},
{
name: "safari",
use: {
...devices["iPhone 15 Pro"],
locale: "ja-JP",
storageState: "./e2e/states/bob.test.json",
},
dependencies: ["setup"],
},
{
name: "chromium",
use: {
...devices["Desktop Chrome"],
locale: "ja-JP",
storageState: "./e2e/states/alice.test.json",
},
dependencies: ["setup"],
},
],
webServer: {
command: "pnpm start:local",
port: 3000,
stdout: "pipe",
reuseExistingServer: !process.env.CI,
},
});