diff options
-rw-r--r-- | .github/workflows/cypress.yml | 8 | ||||
-rw-r--r-- | cypress.config.ts | 4 |
2 files changed, 8 insertions, 4 deletions
diff --git a/.github/workflows/cypress.yml b/.github/workflows/cypress.yml index 8bfb9c00a5f..8d058acf81f 100644 --- a/.github/workflows/cypress.yml +++ b/.github/workflows/cypress.yml @@ -142,12 +142,14 @@ jobs: SPLIT: ${{ matrix.total-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 if: always() with: - name: snapshots_${{ matrix.containers }} - path: cypress/snapshots + name: snapshots_videos_${{ matrix.containers }} + path: | + cypress/snapshots + cypress/videos - name: Extract NC logs if: failure() && matrix.containers != 'component' diff --git a/cypress.config.ts b/cypress.config.ts index 2d798bbfa6c..1e83c0b7f5d 100644 --- a/cypress.config.ts +++ b/cypress.config.ts @@ -34,8 +34,10 @@ export default defineConfig({ // Needed to trigger `after:run` events with cypress open experimentalInteractiveRunEvents: true, + // disabled if running in CI but enabled in debug mode + video: !process.env.CI || !!process.env.RUNNER_DEBUG, + // faster video processing - video: !process.env.CI, videoCompression: false, // Prevent elements to be scrolled under a top bar during actions (click, clear, type, etc). Default is 'top'. |