diff --git a/playwright.config.ts b/playwright.config.ts index b0adb030f..684477e40 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -1,12 +1,19 @@ import { defineConfig, devices } from '@playwright/test'; +const reporter: string[][string] = [['list'], ['html']]; + +if (process.env.CI) { + reporter.push(["github"]); +} + + export default defineConfig({ testDir: './e2e-tests', fullyParallel: false, forbidOnly: !!process.env.CI, - retries: process.env.CI ? 2 : 0, + retries: process.env.CI ? 1 : 0, workers: process.env.CI ? undefined : 1, - reporter: 'html', + reporter, use: { trace: 'on-first-retry' },