-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathplaywright.config.ts
More file actions
29 lines (28 loc) · 970 Bytes
/
playwright.config.ts
File metadata and controls
29 lines (28 loc) · 970 Bytes
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
import { defineConfig } from '@playwright/test';
import path from 'node:path';
export default defineConfig({
testDir: path.resolve(__dirname, '../'),
fullyParallel: true,
/* Fail the build on CI if you accidentally left test.only in the source code. */
forbidOnly: !!process.env.CI,
retries: 0,
/* Opt out of parallel tests on CI. */
workers: process.env.CI ? 20 : undefined,
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
reporter: [
['line'],
[
'html',
{
outputFolder: path.resolve(__dirname, '../playwright-report'),
open: process.env.CI ? 'never' : 'on-failure',
},
],
],
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
use: {
/* Collect trace when a test fails. See https://playwright.dev/docs/trace-viewer */
trace: 'retain-on-failure',
},
globalSetup: path.resolve(__dirname, 'global.setup.ts'),
});