-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplaywright.observability.config.ts
More file actions
27 lines (25 loc) · 1 KB
/
Copy pathplaywright.observability.config.ts
File metadata and controls
27 lines (25 loc) · 1 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
// Observability fabric E2E config (real app, real Alloy Faro collector, no
// request interception). Run from web/node_modules:
// NODE_PATH=web/node_modules npm --prefix web exec -- playwright test --config ../playwright.observability.config.ts
const webBaseURL = process.env.PLAYWRIGHT_WEB_BASE_URL ?? 'http://127.0.0.1:55173/web';
function ensureTrailingSlash(url: string): string {
return url.endsWith('/') ? url : `${url}/`;
}
export default {
testDir: './web/tests/e2e/observability',
fullyParallel: false,
forbidOnly: !!process.env.CI,
retries: 0,
workers: 1,
reporter: [['list'], ['html', { outputFolder: 'output/playwright/observability/html-report', open: 'never' }]],
timeout: 3 * 60 * 1000,
expect: { timeout: 30_000 },
use: {
baseURL: ensureTrailingSlash(webBaseURL),
viewport: { width: 1600, height: 900 },
deviceScaleFactor: 1,
trace: 'retain-on-failure',
screenshot: 'only-on-failure',
},
projects: [{ name: 'web-observability', testMatch: '**/*.spec.ts' }],
};