Skip to content

Commit

Permalink
Try out recording video to understand what's wrong with failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Quetzacoalt91 committed Oct 23, 2024
1 parent e27ff4a commit 32c0971
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ui-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ jobs:
tests/UI/reports/
tests/UI/report.json
tests/UI/docker-compose.log
tests/UI/videos/
retention-days: 30

nightly:
Expand Down
4 changes: 4 additions & 0 deletions tests/UI/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ export default defineConfig({
use: {
/* Capture screenshot after each test failure */
screenshot: 'only-on-failure',
video: 'retain-on-failure',
},

/* Configure projects for major browsers */
Expand All @@ -119,6 +120,9 @@ export default defineConfig({
width: 1680,
height: 900,
},
recordVideo: {
dir: './videos'
}
},
},
},
Expand Down

0 comments on commit 32c0971

Please sign in to comment.