diff --git a/playwright.config.ts b/playwright.config.ts index de610e5..8b9a76a 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -38,8 +38,11 @@ export default defineConfig({ /* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */ trace: 'on-first-retry', - /* Disable headless mode */ + /* Configure headless mode */ headless, + + /* Take screenshot on failure */ + screenshot: 'only-on-failure', }, /* Configure timeout */