-
Notifications
You must be signed in to change notification settings - Fork 113
/
playwright.config.ts
32 lines (29 loc) · 996 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
import { defineConfig, devices } from '@playwright/test';
export default defineConfig({
testDir: './e2e',
fullyParallel: true,
forbidOnly: !!process.env.CI, /* Fail the build on CI if you accidentally left test.only in the source code. */
retries: process.env.CI ? 2 : 0, /* Retry on CI only */
workers: process.env.CI ? 1 : undefined, /* Opt out of parallel tests on CI. */
reporter: 'html',
use: {
baseURL: 'https://localhost:4200',
trace: 'on-first-retry', /* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
},
projects: [
{
name: 'chromium',
use: {
...devices['Desktop Chrome'],
launchOptions: { args: ['--ignore-certificate-errors'] }
},
},
],
/* Run your local dev server before starting the tests */
webServer: {
command: 'npm run start-with-ssl',
url: 'https://localhost:4200',
reuseExistingServer: !process.env.CI,
ignoreHTTPSErrors: true,
},
});