From d7a9ab2ecb753a3e1e0b14df5aa6785463d8ca92 Mon Sep 17 00:00:00 2001 From: Subhash Khileri Date: Wed, 29 Jul 2026 17:03:54 +0530 Subject: [PATCH] feat(playwright): retain trace on all test runs for e2e-triage agent Change trace setting from "retain-on-failure" to "on" so traces are always available, enabling the fullsend e2e-triage agent to compare passing and failing traces for more accurate root cause analysis. Bump version to 2.2.0. Assisted-by: Claude Code Co-Authored-By: Claude Code --- docs/changelog.md | 8 +++++++- package.json | 2 +- src/playwright/base-config.ts | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/docs/changelog.md b/docs/changelog.md index 5bdbb65..7e2c691 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -2,7 +2,13 @@ All notable changes to this project will be documented in this file. -## [2.1.4] - Current +## [2.1.5] - Current + +### Changed + +- **Trace retention on all test runs**: Changed Playwright trace setting from `"retain-on-failure"` to `"on"` so traces are always retained, including on passed tests. This enables the fullsend e2e-triage agent to compare passing and failing traces for more accurate root cause analysis. + +## [2.1.4] ### Changed diff --git a/package.json b/package.json index e6b67a1..a65216b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@red-hat-developer-hub/e2e-test-utils", - "version": "2.1.4", + "version": "2.1.5", "description": "Test utilities for RHDH E2E tests", "license": "Apache-2.0", "repository": { diff --git a/src/playwright/base-config.ts b/src/playwright/base-config.ts index f20c99e..304e74e 100644 --- a/src/playwright/base-config.ts +++ b/src/playwright/base-config.ts @@ -24,7 +24,7 @@ export const baseConfig: PlaywrightTestConfig = { ], use: { ignoreHTTPSErrors: true, - trace: "retain-on-failure", + trace: "on", screenshot: "only-on-failure", viewport: { width: 1920, height: 1080 }, video: {