-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplaywright.exhaustive.config.ts
More file actions
39 lines (37 loc) · 1.15 KB
/
Copy pathplaywright.exhaustive.config.ts
File metadata and controls
39 lines (37 loc) · 1.15 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
// Exhaustive UI suite config.
// Intentionally avoids importing "@playwright/test" so it can run from `web/node_modules`.
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/exhaustive',
fullyParallel: false,
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 1 : 0,
workers: 1,
reporter: [
['list'],
['html', { outputFolder: 'output/playwright/exhaustive/html-report', open: 'never' }],
],
timeout: Number(process.env.EXHAUSTIVE_TEST_TIMEOUT_MS ?? 10 * 60 * 1000),
expect: {
timeout: Number(process.env.EXHAUSTIVE_EXPECT_TIMEOUT_MS ?? 30_000),
},
use: {
baseURL: ensureTrailingSlash(webBaseURL),
actionTimeout: Number(process.env.EXHAUSTIVE_ACTION_TIMEOUT_MS ?? 30_000),
trace: 'retain-on-failure',
screenshot: 'only-on-failure',
video: 'retain-on-failure',
},
projects: [
{
name: 'web-exhaustive',
testMatch: '**/*.spec.ts',
use: {
baseURL: ensureTrailingSlash(webBaseURL),
},
},
],
};