diff --git a/playwright.config.ts b/playwright.config.ts index e9300b8..79165ff 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -42,6 +42,9 @@ export default defineConfig({ /* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */ trace: 'on-first-retry', + + // Screenshot on failed test + screenshot: 'only-on-failure', }, /* Configure projects for major browsers */