-
Notifications
You must be signed in to change notification settings - Fork 309
Expand file tree
/
Copy pathplaywright.docker.config.ts
More file actions
66 lines (65 loc) · 1.6 KB
/
playwright.docker.config.ts
File metadata and controls
66 lines (65 loc) · 1.6 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
import { defineConfig, devices } from '@playwright/test';
import baseConfig from './playwright.config';
import type { ConfigOptions } from '@nuxt/test-utils/playwright'
export default defineConfig<ConfigOptions>({
...baseConfig,
timeout: 30 * 1000, // Increase timeout to 30 seconds
grepInvert: /@real-data/,
expect: {
timeout: 10 * 1000, // 10 seconds for expect assertions
},
reporter: [
['list'],
['html', { open: 'never', outputFolder: '/test-results/html' }],
['github'],
['junit', { outputFile: '/test-results/junit/results.xml' }]
],
use: {
baseURL: 'http://127.0.0.1:3000',
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
trace: 'retain-on-failure',
screenshot: 'on',
},
projects: [
{
name: 'chromium',
use: {
...devices['Desktop Chrome'],
launchOptions: {
args: [
'--no-sandbox',
'--disable-setuid-sandbox',
'--disable-dev-shm-usage',
]
}
}
},
{
name: 'firefox',
use: {
...devices['Desktop Firefox'],
launchOptions: {
args: [
'--no-sandbox',
'--disable-setuid-sandbox',
'--disable-dev-shm-usage',
]
}
},
},
{
name: 'webkit',
use: {
...devices['Desktop Safari']
},
},
],
webServer: {
command: 'NITRO_PORT=3000 node /app/server/index.mjs',
url: 'http://127.0.0.1:3000',
cwd: '/app',
reuseExistingServer: false,
stderr: 'pipe',
stdout: 'pipe'
},
});