From c6c69d827f7dbe14d584ee3e0029892e68bd4719 Mon Sep 17 00:00:00 2001 From: Marvin Zhang Date: Wed, 23 Oct 2024 13:58:41 +0800 Subject: [PATCH] chore: updated config --- playwright.config.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 */