-
Notifications
You must be signed in to change notification settings - Fork 92
/
playwright.config.ts
46 lines (44 loc) · 980 Bytes
/
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
require('dotenv').config();
import { PlaywrightTestConfig } from '@playwright/test';
const baseURL = process.env.PLAYWRIGHT_TESTS_BASE_URL!;
const config: PlaywrightTestConfig = {
globalSetup: require.resolve('./src/tests/ui/global-setup'),
expect: {
toMatchSnapshot: {
threshold: 0.3,
maxDiffPixelRatio: 0.05
}
},
use: {
baseURL,
trace: 'on-first-retry',
headless: !!process.env.CI,
ignoreHTTPSErrors: true,
screenshot: 'only-on-failure'
},
testDir: './src/tests',
testIgnore: '**/authenticated-experiences/**',
reporter: [
[
'html',
{ outputFolder: 'playwright-report' }
]
],
retries: 1,
timeout: 60000,
projects: [
{
name: 'Ms-Edge',
use: {
channel: 'msedge',
viewport: { width: 1920, height: 1080 }}
},
{
name: 'Chrome',
use: {
channel: 'chrome',
viewport: { width: 1365, height: 768 }}
}
]
};
export default config;