-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplaywright.config.mjs
45 lines (40 loc) · 1000 Bytes
/
playwright.config.mjs
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
import { defineConfig, devices } from "@playwright/test";
// pnpm exec playwright test --ui
export default defineConfig({
testDir: "tests",
// fullyParallel: true,
reporter: "html",
use: {
launchOptions: {
args: [
// CORS 無効
"--disable-web-security",
"--disable-features=IsolateOrigins,site-per-process",
"--use-fake-ui-for-media-stream",
"--use-fake-device-for-media-stream",
// "--use-file-for-fake-video-capture=/app/sample.mjpeg",
],
},
},
projects: [
{
name: "chromium",
use: { ...devices["Desktop Chrome"] },
},
// {
// name: 'firefox',
// use: { ...devices['Desktop Firefox'] },
// },
// {
// name: 'webkit',
// use: { ...devices['Desktop Safari'] },
// },
],
webServer: {
command: "pnpm run dev --port 9000",
url: "http://localhost:9000/",
reuseExistingServer: !process.env.CI,
stdout: "pipe",
stderr: "pipe",
},
});