-
Notifications
You must be signed in to change notification settings - Fork 98
Expand file tree
/
Copy pathplaywright.designer.config.ts
More file actions
59 lines (55 loc) · 1.43 KB
/
playwright.designer.config.ts
File metadata and controls
59 lines (55 loc) · 1.43 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
process.env.NODE_ENV = 'development'; // Set before importing Playwright
import { defineConfig, devices } from '@playwright/test';
import 'dotenv/config';
export default defineConfig({
testDir: './e2e',
testMatch: ['designer/**/*.spec.ts', 'templates/**/*.spec.ts'],
reporter: process.env.TEST_SHARDED ? 'blob' : 'html',
fullyParallel: true,
forbidOnly: !!process.env.CI,
retries: 2,
workers: process.env.CI ? 2 : '50%',
timeout: 5 * 60 * 1_000,
expect: {
timeout: 20 * 1000,
},
reportSlowTests: {
threshold: 60 * 1_000,
max: 10,
},
use: {
testIdAttribute: 'data-automation-id',
actionTimeout: 20 * 1_000,
baseURL: 'http://localhost:4200',
video: 'on-first-retry',
trace: 'on-first-retry',
storageState: {
cookies: [],
origins: [
{
origin: 'http://localhost:4200',
localStorage: [
{
name: 'control-expand-collapse-button',
value: 'true',
},
],
},
],
},
},
/* Configure projects for major browsers */
projects: [
{
name: 'chromium',
use: { ...devices['Desktop Chrome'], permissions: ['clipboard-read', 'clipboard-write'] },
},
],
/* Run your local dev server before starting the tests */
webServer: {
command: 'pnpm run start:e2e',
url: 'http://localhost:4200/',
ignoreHTTPSErrors: true,
reuseExistingServer: !process.env.CI,
},
});