-
Notifications
You must be signed in to change notification settings - Fork 8
/
playwright.config.ts
33 lines (26 loc) · 856 Bytes
/
playwright.config.ts
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
import { devices, PlaywrightTestConfig } from '@playwright/test';
const config: PlaywrightTestConfig = {
testMatch: /.*\.test\.e2e\.ts$/,
timeout: process.env.CI === 'true' ? 5 * 60 * 1000 : undefined,
fullyParallel: true,
use: {
headless: true
},
webServer: {
command: `npm run start:${process.env.API}:no-delay`,
port: 8080
},
projects: [
// Avoid getting "429 Too Many Requests" from marvel.com
{ name: 'Desktop Chrome', use: devices['Desktop Chrome'] },
...(process.env.API === 'stubs'
? [
{ name: 'Desktop Firefox', use: devices['Desktop Firefox'] },
{ name: 'Desktop Safari', use: devices['Desktop Safari'] },
{ name: 'Pixel 4', use: devices['Pixel 4'] },
{ name: 'iPhone 11', use: devices['iPhone 11'] }
]
: [])
]
};
export default config;