-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Expand file tree
/
Copy pathplaywright.config.js
More file actions
59 lines (46 loc) · 1.25 KB
/
Copy pathplaywright.config.js
File metadata and controls
59 lines (46 loc) · 1.25 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
46
47
48
49
50
51
52
53
54
55
56
57
58
const { defineConfig, devices } = require('@playwright/test');
/**
* @see https://playwright.dev/docs/test-configuration
*/
module.exports = defineConfig({
testDir: './editions/test/',
timeout: 60000,
// Allow parallel tests
fullyParallel: true,
// Prevent accidentally committed "test.only" from wrecking havoc
forbidOnly: !!process.env.CI,
// Do not retry tests on failure
retries: 0,
// How many parallel workers
workers: process.env.CI ? 1 : undefined,
// Reporter to use. See https://playwright.dev/docs/test-reporters
reporter: 'html',
// Settings shared with all the tests
use: {
screenshot: {
mode: 'only-on-failure',
fullPage: true
},
// Limit individual actions (like click/type) so they don't hang indefinitely
actionTimeout: 15000,
},
expect: {
// Give expect() assertions more time to find elements like '.jasmine-overall-result'
timeout: 20000,
},
/* Configure projects for major browsers */
projects: [
{
name: 'chromium',
use: { ...devices['Desktop Chrome'] },
},
{
name: 'firefox',
use: { ...devices['Desktop Firefox'] }
},
{
name: 'edge',
use: { ...devices['Desktop Chrome'], channel: 'msedge' },
}
],
});