diff --git a/assets/playwright.config.js b/assets/playwright.config.js index 259be7d..7166aa6 100644 --- a/assets/playwright.config.js +++ b/assets/playwright.config.js @@ -21,7 +21,7 @@ module.exports = defineConfig({ /* Opt out of parallel tests on CI. */ workers: process.env.CI ? 1 : undefined, /* Reporter to use. See https://playwright.dev/docs/test-reporters */ - reporter: 'html', + reporter: process.env.GITHUB_ACTIONS ? 'github' : 'html', /* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */ use: { /* Base URL to use in actions like `await page.goto('/')`. */ diff --git a/assets/playwright.config.ts b/assets/playwright.config.ts index 4b5f34d..5cc516a 100644 --- a/assets/playwright.config.ts +++ b/assets/playwright.config.ts @@ -22,7 +22,7 @@ export default defineConfig({ /* Opt out of parallel tests on CI. */ workers: process.env.CI ? 1 : undefined, /* Reporter to use. See https://playwright.dev/docs/test-reporters */ - reporter: 'html', + reporter: process.env.GITHUB_ACTIONS ? 'github' : 'html', /* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */ use: { /* Base URL to use in actions like `await page.goto('/')`. */