-
Notifications
You must be signed in to change notification settings - Fork 0
/
playwright.config.js
38 lines (35 loc) · 1016 Bytes
/
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
const { matchers } = require('expect-playwright')
const { expect } = require('@playwright/test')
expect.extend(matchers)
process.env.PLAYWRIGHT_EXPERIMENTAL_FEATURES = '1'
module.exports = {
retries: process.env.CI ? 1 : 0,
reporter: [ ['allure-playwright'], ['list'], ['html', { open: 'never', outputFolder: 'reports' }]],
projects: [
{
name: 'e2e',
outputDir: 'test-results',
testMatch: '**/*.e2e.test.js',
timeout: 100000,
use: {
baseURL: process.env.BASE_URL,
browsers: ['chromium'],
viewport: { width: 1440, height: 900 },
screenshot: 'only-on-failure',
trace: 'retain-on-failure',
bypassCSP: true,
testIdAttribute: 'data-test',
launchOptions: {
args: [
'--no-sandbox',
'--disable-setuid-sandbox',
'--disable-web-security',
'--disable-gpu',
'--disable-dev-shm-usage'
],
headless: true
}
}
}
]
}