diff --git a/playwright.config.ts b/playwright.config.ts index 0c5f915b1f..1c7995b30b 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -25,8 +25,8 @@ const config: PlaywrightTestConfig = { testIdAttribute: 'data-qa', trace: 'on-first-retry', // Always record video and take screenshots on main branch, otherwise only on failure - video: process.env.GITHUB_REF === 'refs/heads/main' ? 'on' : 'retain-on-failure', - screenshot: process.env.GITHUB_REF === 'refs/heads/main' ? 'on' : 'only-on-failure', + video: 'retain-on-failure', + screenshot: 'only-on-failure', }, projects: [ {