We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ed2fab commit 27f9a9fCopy full SHA for 27f9a9f
playwright.config.ts
@@ -24,8 +24,9 @@ const config: PlaywrightTestConfig = {
24
baseURL: baseUrl || 'http://localhost:3000/',
25
testIdAttribute: 'data-qa',
26
trace: 'on-first-retry',
27
- video: 'retain-on-failure',
28
- screenshot: 'only-on-failure',
+ // 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',
29
+ screenshot: process.env.GITHUB_REF === 'refs/heads/main' ? 'on' : 'only-on-failure',
30
},
31
projects: [
32
{
0 commit comments