-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplaywright.config.js
35 lines (34 loc) · 944 Bytes
/
playwright.config.js
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
import {devices} from '@playwright/test'
export default {
testDir: 'tests/playwright',
globalTimeout: 60000,
timeout: 2000,
fullyParallel: false,
// Fail the build on CI if you accidentally left test.only in the source code.
forbidOnly: !!process.env.CI,
// maxFailures: 1,
retries: process.env.CI ? 2 : 1,
workers: process.env.CI ? 2 : 4,
reporter: 'html',
use: {
baseURL: 'http://localhost:1520',
ignoreHTTPSErrors: true,
// Collect trace when retrying the failed test.
trace: 'on-first-retry',
// Capture screenshot after each test failure.
screenshot: 'only-on-failure',
// headless: false,
},
projects: [
{
name: 'chromium',
use: {...devices['Desktop Chrome']},
},
],
// Run local dev server before starting the tests.
// webServer: {
// command: 'npm run start',
// url: 'http://0.0.0.0:5173',
// reuseExistingServer: !process.env.CI,
// },
}