-
Notifications
You must be signed in to change notification settings - Fork 147
Expand file tree
/
Copy pathplaywright-snapshot.config.ts
More file actions
51 lines (46 loc) · 1.09 KB
/
Copy pathplaywright-snapshot.config.ts
File metadata and controls
51 lines (46 loc) · 1.09 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
import { defineConfig, devices } from '@playwright/test';
import * as dotenv from 'dotenv';
dotenv.config();
/**
* Snapshot config: same as main config but with screenshots always captured.
*/
export default defineConfig({
testDir: './playwright/e2e',
testMatch: '**/*.spec.ts',
fullyParallel: false,
retries: 0,
workers: 1,
reporter: 'list',
timeout: 120000,
use: {
baseURL: process.env.BASE_URL || 'http://localhost:3000',
viewport: { width: 1440, height: 900 },
trace: 'off',
screenshot: 'on',
video: 'off',
actionTimeout: 15000,
navigationTimeout: 15000,
bypassCSP: true,
permissions: ['clipboard-read', 'clipboard-write'],
},
projects: [
{
name: 'chromium',
use: {
...devices['Desktop Chrome'],
viewport: { width: 1440, height: 900 },
launchOptions: {
args: [
'--disable-gpu-sandbox',
'--no-sandbox',
'--disable-dev-shm-usage',
'--force-device-scale-factor=1',
],
},
},
},
],
expect: {
timeout: 15000,
},
});