Skip to content

Commit 4f8b7a0

Browse files
committed
add html reporter
1 parent 8ffac35 commit 4f8b7a0

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

apps/site/playwright.config.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
import { defineConfig, devices } from '@playwright/test';
22

3+
const isCI = !!process.env.CI;
4+
35
export default defineConfig({
46
testDir: './tests/e2e',
57
fullyParallel: true,
6-
forbidOnly: !!process.env.CI,
7-
retries: process.env.CI ? 2 : 0,
8-
workers: process.env.CI ? 1 : undefined,
9-
reporter: process.env.CI ? 'github' : 'html',
8+
forbidOnly: isCI,
9+
retries: isCI ? 2 : 0,
10+
workers: isCI ? 1 : undefined,
11+
reporter: isCI ? [['html'], ['github']] : [['html']],
12+
1013
use: {
1114
baseURL: process.env.VERCEL_PREVIEW_URL || 'http://127.0.0.1:3000',
12-
1315
trace: 'on-first-retry',
1416
},
1517

@@ -18,12 +20,10 @@ export default defineConfig({
1820
name: 'chromium',
1921
use: { ...devices['Desktop Chrome'] },
2022
},
21-
2223
{
2324
name: 'firefox',
2425
use: { ...devices['Desktop Firefox'] },
2526
},
26-
2727
{
2828
name: 'webkit',
2929
use: { ...devices['Desktop Safari'] },

0 commit comments

Comments
 (0)