-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplaywright.config.ts
More file actions
60 lines (49 loc) · 1.42 KB
/
playwright.config.ts
File metadata and controls
60 lines (49 loc) · 1.42 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, devices } from '@playwright/test';
/**
* Playwright configuration for Ensemble integration tests
* Tests demos to validate end-to-end functionality including worker threads
*/
export default defineConfig({
testDir: './e2e',
testMatch: '**/*.spec.ts',
// Run tests in parallel
fullyParallel: true,
// Fail fast on CI
forbidOnly: !!process.env.CI,
// Retry on CI
retries: process.env.CI ? 2 : 0,
// Limit workers on CI
workers: process.env.CI ? 1 : undefined,
// Reporter configuration
reporter: process.env.CI ? 'github' : 'list',
// Shared settings for all projects
use: {
// Base URL will be overridden per project
baseURL: 'http://localhost:5173',
// Collect trace on first retry
trace: 'on-first-retry',
// Screenshot on failure
screenshot: 'only-on-failure',
},
// Configure projects for different demos
projects: [
{
name: 'counter-react',
use: {
...devices['Desktop Chrome'],
baseURL: 'http://localhost:3001',
},
testMatch: '**/counter-react.spec.ts',
},
{
name: 'metrics-dashboard',
use: {
...devices['Desktop Chrome'],
baseURL: 'http://localhost:5174',
},
testMatch: '**/metrics-dashboard.spec.ts',
},
],
// Web server configuration - don't start servers (manual for now)
// webServer will be added once we have a reliable way to start demos
});