-
Notifications
You must be signed in to change notification settings - Fork 7
/
playwright.config.ts
70 lines (63 loc) · 1.27 KB
/
playwright.config.ts
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
import {
defineConfig
} from '@playwright/test';
export default defineConfig({
// @ts-ignore
globalSetup: require.resolve('./global-setup.ts'),
testDir: './e2e-tests',
timeout: 30 * 1000,
expect: {
timeout: 5000
},
fullyParallel: true,
// @ts-ignore
forbidOnly: !!process.env.CI,
retries: 4,
// @ts-ignore
workers: process.env.CI ? 1 : undefined,
reporter: [['html', {
open: 'never'
}]],
use: {
// @ts-ignore
baseURL: process.env.HOST,
actionTimeout: 0,
trace: 'on-first-retry',
permissions: ['geolocation'],
ignoreHTTPSErrors: true,
viewport: {
width: 800,
height: 600
}
},
projects: [
{ name: 'setup',
testMatch: /.*\.setup\.ts/ },
{
name: 'chromium',
use: {
browserName: 'chromium',
locale: 'de-DE'
},
dependencies: ['setup']
},
{
name: 'firefox',
use: {
browserName: 'firefox',
locale: 'de-DE'
},
dependencies: ['setup']
},
{
name: 'webkit',
use: {
browserName: 'webkit',
locale: 'de-DE'
},
dependencies: ['setup']
}
],
/* Folder for test artifacts such as screenshots, videos, traces, etc. */
outputDir: './e2e-tests/test-results/'
});