-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathplaywright.config.js
69 lines (62 loc) · 1.34 KB
/
playwright.config.js
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
import {
defineConfig
} from '@playwright/test';
export default defineConfig({
globalSetup: './global-setup',
testDir: './src/e2e-tests',
snapshotPathTemplate: './e2e-tests/additional-files/screenshots/{arg}{ext}',
timeout: 30 * 1000,
expect: {
timeout: 5000
},
fullyParallel: true,
forbidOnly: !!process.env.CI,
retries: 4,
workers: process.env.CI ? 1 : undefined,
reporter: [['html', {
open: 'never'
}]],
use: {
baseURL: `https://${process.env.HOST}`,
actionTimeout: 0,
trace: 'on-first-retry',
permissions: ['geolocation'],
ignoreHTTPSErrors: true,
viewport: {
width: 1200,
height: 800
}
},
projects: [
{
name: 'setup',
testMatch: /auth.setup\.ts/
},
{
name: 'chromium',
use: {
browserName: 'chromium',
locale: 'en-EN'
},
dependencies: ['setup']
}
// {
// name: 'firefox',
// use: {
// browserName: 'firefox',
// locale: 'en-EN'
// },
// dependencies: ['setup']
// },
// {
// name: 'webkit',
// use: {
// browserName: 'webkit',
// locale: 'en-EN'
// },
// dependencies: ['setup']
// }
],
/* Folder for test artifacts such as screenshots, videos, traces, etc. */
outputDir: './src/e2e-tests/test-results/'
});