forked from spencerbull/dvd-dell-pro-ai-studio-chat
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplaywright.docker.config.ts
More file actions
60 lines (50 loc) · 1.44 KB
/
Copy pathplaywright.docker.config.ts
File metadata and controls
60 lines (50 loc) · 1.44 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
import { defineConfig } from '@playwright/test';
/**
* Playwright configuration for Docker integration tests
*/
export default defineConfig({
testDir: './tests/e2e',
testMatch: 'docker-db-integration.spec.ts',
/* Maximum time one test can run for. */
timeout: 60 * 1000,
/* Run tests in files in parallel */
fullyParallel: false, // Sequential is better for Docker tests
/* Configure retries - useful for Docker tests that might have timing issues */
retries: 1,
/* Reporter to use. */
reporter: [
['html', { open: 'never' }],
['list', { printSteps: true }]
],
/* Shared settings for all the projects below */
use: {
/* Maximum time each action (like clicking) can take. */
actionTimeout: 20000,
/* Collect trace when test fails. */
trace: 'on-first-retry',
/* Take screenshots on failure */
screenshot: 'only-on-failure',
/* Record video on failure */
video: 'on-first-retry',
},
/* Configure projects for the different browsers */
projects: [
{
name: 'chromium',
use: {
browserName: 'chromium',
headless: true,
viewport: { width: 1280, height: 720 },
baseURL: 'http://localhost:5173',
},
}
],
/* Run local dev server before starting the tests */
webServer: {
command: 'yarn dev',
url: 'http://localhost:5173',
reuseExistingServer: true,
stdout: 'pipe',
stderr: 'pipe',
},
});