forked from open-pencil/open-pencil
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplaywright.config.ts
More file actions
56 lines (55 loc) · 1.11 KB
/
Copy pathplaywright.config.ts
File metadata and controls
56 lines (55 loc) · 1.11 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
import { defineConfig } from '@playwright/test'
export default defineConfig({
testDir: './tests',
timeout: 15_000,
workers: 1,
expect: {
toHaveScreenshot: {
maxDiffPixelRatio: 0.01,
threshold: 0.3
},
toMatchSnapshot: {
maxDiffPixelRatio: 0.01,
threshold: 0.3
}
},
use: {
baseURL: 'http://localhost:1420',
testIdAttribute: 'data-test-id',
viewport: { width: 1280, height: 800 },
deviceScaleFactor: 2,
colorScheme: 'dark',
launchOptions: {
args: ['--enable-unsafe-swiftshader']
}
},
projects: [
{
name: 'openpencil',
testDir: './tests/e2e',
fullyParallel: false
},
{
name: 'openpencil-webkit',
testDir: './tests/e2e',
testMatch: [
'**/*.webkit.spec.ts',
'**/design/panel.spec.ts',
'**/export/basic.spec.ts',
'**/fonts/settings.spec.ts'
],
use: {
browserName: 'webkit'
}
},
{
name: 'figma',
testDir: './tests/figma'
}
],
webServer: {
command: 'bun run dev',
port: 1420,
reuseExistingServer: true
}
})