-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplaywright.config.ts
31 lines (29 loc) · 988 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
import { defineConfig, devices } from '@playwright/test';
const isWatch = process.env.PWTEST_WATCH === '1';
const localReporter = isWatch ? 'list' : [['list'],['./dist/index.js', { outputFile: './README.md', fullReportLink: 'playwright-report/index.html' }]];
export default defineConfig({
testDir: './src',
fullyParallel: true,
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 2 : 0,
workers: process.env.CI ? 1 : undefined,
// @ts-ignore
reporter: process.env.CI ? [['github'],
['html'],
['./dist/index.js', { outputFile: './README.md', fullReportLink: 'https://raw.githack.com/royk/playwright-feature-reporter/refs/heads/main/playwright-report/index.html' }]]
: localReporter,
use: {
trace: 'on-first-retry',
},
projects: [
{
name: 'no-browser'
},
{
name: 'chromium',
use: {
browserName: 'chromium',
},
}
]
});