chore: enable cypress video recording in debug mode

Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
pull/50025/head
skjnldsv 4 months ago
parent 43b3ad13e0
commit bc523f6441
  1. 8
      .github/workflows/cypress.yml
  2. 4
      cypress.config.ts

@ -142,12 +142,14 @@ jobs:
SPLIT: ${{ matrix.total-containers }} SPLIT: ${{ matrix.total-containers }}
SPLIT_INDEX: ${{ matrix.containers == 'component' && 0 || matrix.containers }} SPLIT_INDEX: ${{ matrix.containers == 'component' && 0 || matrix.containers }}
- name: Upload snapshots - name: Upload snapshots and videos
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3 uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
if: always() if: always()
with: with:
name: snapshots_${{ matrix.containers }} name: snapshots_videos_${{ matrix.containers }}
path: cypress/snapshots path: |
cypress/snapshots
cypress/videos
- name: Extract NC logs - name: Extract NC logs
if: failure() && matrix.containers != 'component' if: failure() && matrix.containers != 'component'

@ -34,8 +34,10 @@ export default defineConfig({
// Needed to trigger `after:run` events with cypress open // Needed to trigger `after:run` events with cypress open
experimentalInteractiveRunEvents: true, experimentalInteractiveRunEvents: true,
// disabled if running in CI but enabled in debug mode
video: !process.env.CI || !!process.env.RUNNER_DEBUG,
// faster video processing // faster video processing
video: !process.env.CI,
videoCompression: false, videoCompression: false,
// Prevent elements to be scrolled under a top bar during actions (click, clear, type, etc). Default is 'top'. // Prevent elements to be scrolled under a top bar during actions (click, clear, type, etc). Default is 'top'.

Loading…
Cancel
Save