diff --git a/.github/workflows/frontend.yml b/.github/workflows/frontend.yml index c2241a6a..6e1530ed 100644 --- a/.github/workflows/frontend.yml +++ b/.github/workflows/frontend.yml @@ -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/ diff --git a/simulator-ui/playwright.config.ts b/simulator-ui/playwright.config.ts index 1cac822b..ea98d0de 100644 --- a/simulator-ui/playwright.config.ts +++ b/simulator-ui/playwright.config.ts @@ -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 */