-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplaywright.config.js
More file actions
40 lines (39 loc) · 958 Bytes
/
Copy pathplaywright.config.js
File metadata and controls
40 lines (39 loc) · 958 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
38
39
40
import { defineConfig } from '@playwright/test';
export default defineConfig({
projects: [
{
name: 'chromium',
use: {
browserName: 'chromium',
permissions: [
'clipboard-read',
],
},
},
{
name: 'firefox',
use: { browserName: 'firefox' },
},
{
name: 'webkit',
use: { browserName: 'webkit' },
},
],
testDir: './test/browser',
testMatch: '**/*.test.js',
timeout: 30000,
use: {
baseURL: 'http://localhost:3001',
headless: true,
reducedMotion: 'reduce',
viewport: {
height: 600,
width: 800,
},
},
webServer: {
command: 'node test/support/server/static-server.js',
reuseExistingServer: !process.env.CI,
url: 'http://localhost:3001',
},
});