Repository navigation
Expand file tree
/
Copy pathplaywright.config.js
More file actions
83 lines (74 loc) · 2.12 KB
/
Copy pathplaywright.config.js
File metadata and controls
83 lines (74 loc) · 2.12 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
// Playwright configuration for debugging integration tests
module.exports = {
// Use debug mode
use: {
// Global test settings
headless: true, // Run in headless mode (safer for CI/servers)
slowMo: 50, // Reduced slow down for faster tests
video: 'retain-on-failure',
screenshot: 'only-on-failure',
trace: 'retain-on-failure',
// Browser settings
launchOptions: {
args: [
'--disable-dev-shm-usage',
'--disable-extensions',
'--disable-gpu',
'--disable-background-timer-throttling',
'--disable-backgrounding-occluded-windows',
'--disable-renderer-backgrounding',
'--no-sandbox',
'--disable-web-security',
'--disable-features=VizDisplayCompositor',
'--disable-setuid-sandbox',
'--disable-software-rasterizer',
'--run-all-compositor-stages-before-draw',
'--disable-background-media-suspend',
'--disable-domain-reliability',
'--disable-features=AudioServiceOutOfProcess',
'--disable-ipc-flooding-protection'
]
}
},
// Timeout settings
timeout: 30000,
expect: {
timeout: 10000
},
// Global setup/teardown
globalSetup: null,
globalTeardown: null,
// Test settings
testDir: './tests/integration',
workers: 1, // Run tests serially for debugging
retries: 0, // No retries during debugging
// Reporting
reporter: [
['list'],
['html', {
outputFolder: 'playwright-report',
open: 'never' // Don't auto-open browser for reports
}],
['json', {
outputFile: 'test-results/results.json'
}]
],
// Browser projects
projects: [
{
name: 'chromium',
use: {
...require('@playwright/test').devices['Desktop Chrome'],
channel: 'chrome', // Use system Chrome if available
executablePath: '/usr/bin/google-chrome-stable'
},
},
],
// Output directory
outputDir: 'test-results/',
// Full path configuration
fullyParallel: false,
forbidOnly: !!process.env.CI,
// Web server (not used - we start our own servers)
webServer: null
};