-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathplaywright.parity.config.ts
More file actions
45 lines (44 loc) · 1.06 KB
/
Copy pathplaywright.parity.config.ts
File metadata and controls
45 lines (44 loc) · 1.06 KB
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 } from '@playwright/test';
export default defineConfig({
testDir: './tests/ui-parity',
outputDir: './test-results/ui-parity',
fullyParallel: false,
workers: 1,
reporter: [['line']],
expect: {
timeout: 5_000,
},
use: {
channel: 'chrome',
deviceScaleFactor: 1,
headless: true,
ignoreHTTPSErrors: true,
locale: 'zh-CN',
serviceWorkers: 'block',
timezoneId: 'Asia/Hong_Kong',
viewport: { width: 1280, height: 720 },
},
projects: [
{
name: 'chromium',
use: { browserName: 'chromium' },
},
],
webServer: [
{
command: 'npm run parity:legacy-server',
url: 'https://portal.naominet.live:4201/',
ignoreHTTPSErrors: true,
reuseExistingServer: !process.env.CI,
timeout: 30_000,
},
{
command:
'node node_modules/vite/bin/vite.js --host 127.0.0.1 --port 5173 --strictPort',
url: 'https://portal.naominet.live:5173/',
ignoreHTTPSErrors: true,
reuseExistingServer: !process.env.CI,
timeout: 60_000,
},
],
});