-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathplaywright.config.mjs
85 lines (77 loc) · 1.99 KB
/
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
import { defineConfig, devices } from '@playwright/test'
// pnpm exec playwright test --ui
export default defineConfig({
testDir: 'e2e-tests/tests',
workers: 1,
// fullyParallel: true,
reporter: 'list',
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",
// '--enable-features=WebRtcAllowH265Send,WebRtcAllowH265Receive',
],
},
},
projects: [
// Chromium
{
name: 'Chromium',
use: { ...devices['Desktop Chrome'] },
},
// Chrome
{
name: 'Google Chrome',
use: { ...devices['Desktop Chrome'], channel: 'chrome' },
},
{
name: 'Google Chrome Beta',
use: { ...devices['Desktop Chrome'], channel: 'chrome-beta' },
},
{
name: 'Google Chrome Dev',
use: { ...devices['Desktop Chrome'], channel: 'chrome-dev' },
},
{
name: 'Google Chrome Canary',
use: { ...devices['Desktop Chrome'], channel: 'chrome-canary' },
},
// Edge
{
name: 'Microsoft Edge',
use: { ...devices['Desktop Edge'], channel: 'msedge' },
},
{
name: 'Microsoft Edge Beta',
use: { ...devices['Desktop Edge'], channel: 'msedge-beta' },
},
{
name: 'Microsoft Edge Dev',
use: { ...devices['Desktop Edge'], channel: 'msedge-dev' },
},
{
name: 'Microsoft Edge Canary',
use: { ...devices['Desktop Edge'], channel: 'msedge-canary' },
},
{
name: 'WebKit',
use: { ...devices['Desktop Safari'] },
},
// {
// name: 'firefox',
// use: { ...devices['Desktop Firefox'] },
// },
],
webServer: {
command: 'pnpm run e2e-dev --port 9000',
url: 'http://localhost:9000/',
reuseExistingServer: !process.env.CI,
stdout: 'pipe',
stderr: 'pipe',
},
})