From 3aa9e4190398fd976ed1e1139c528d61a809e4db Mon Sep 17 00:00:00 2001 From: Cristen Jones Date: Wed, 7 Aug 2024 12:25:57 -0400 Subject: [PATCH] screenshot on fail --- playwright.config.js | 1 + 1 file changed, 1 insertion(+) diff --git a/playwright.config.js b/playwright.config.js index 6738c3b223..8c12fa7895 100644 --- a/playwright.config.js +++ b/playwright.config.js @@ -18,6 +18,7 @@ module.exports = defineConfig({ baseURL: process.env.HOST ? `https://${process.env.HOST}` : 'http://localhost:4001', /* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */ trace: 'on-first-retry', + screenshot: "only-on-failure" }, /* set the expect timeout to 30s */ expect: { timeout: 30000 },