Skip to content

Commit

Permalink
test(citrus-simulator-ui): add recorded video to workflow artifacts i…
Browse files Browse the repository at this point in the history
…f playwright test failed
  • Loading branch information
muellerfluri committed Sep 11, 2024
1 parent 4b78557 commit 62c70e5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,3 +85,7 @@ jobs:
name: playwright-report
path: playwright-report/
retention-days: 30
- uses: actions/upload-artifact@v4
with:
name: test-results
path: playwright-failed-test-videos/
4 changes: 4 additions & 0 deletions simulator-ui/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ export default defineConfig({
testIdAttribute: 'data-test',
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
trace: 'on-first-retry',
video: {
mode: 'retain-on-failure' ,
size: { width: 640, height: 480 }
}
},

/* Configure projects for major browsers */
Expand Down

0 comments on commit 62c70e5

Please sign in to comment.