Skip to content

Commit 27f9a9f

Browse files
authored
chore: take shots and video for main branch (#1763)
1 parent 4ed2fab commit 27f9a9f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

playwright.config.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,9 @@ const config: PlaywrightTestConfig = {
2424
baseURL: baseUrl || 'http://localhost:3000/',
2525
testIdAttribute: 'data-qa',
2626
trace: 'on-first-retry',
27-
video: 'retain-on-failure',
28-
screenshot: 'only-on-failure',
27+
// Always record video and take screenshots on main branch, otherwise only on failure
28+
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',
2930
},
3031
projects: [
3132
{

0 commit comments

Comments
 (0)