forked from vanilla-extract-css/vanilla-extract
-
Notifications
You must be signed in to change notification settings - Fork 0
/
playwright.config.ts
54 lines (52 loc) · 1.13 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
import { PlaywrightTestConfig, devices } from '@playwright/test';
const config: PlaywrightTestConfig = {
testMatch: '**/*.playwright.ts',
updateSnapshots: 'none',
expect: {
toMatchSnapshot: {
threshold: 0.2,
maxDiffPixelRatio: 0.02,
},
},
projects: [
{
name: 'Desktop - Chromium',
grepInvert: /@agnostic/,
use: {
browserName: 'chromium',
channel: 'chrome',
viewport: {
width: 1200,
height: 1080,
},
},
},
{
name: 'Mobile - Chromium',
grepInvert: /@agnostic/,
use: {
browserName: 'chromium',
channel: 'chrome',
viewport: {
width: 414,
height: 896,
},
},
},
{
// If a test is browser/platform agnostic, add the @agnostic tag to the
// test name. We omit the project name here to keep snapshot names tidy.
name: '',
grep: /@agnostic/,
use: {
browserName: 'chromium',
channel: 'chrome',
viewport: {
width: 1200,
height: 1080,
},
},
},
],
};
export default config;