From 47cb9bbfa836c5b3498dce069824410ab1f56580 Mon Sep 17 00:00:00 2001 From: skjnldsv Date: Fri, 3 Jan 2025 10:28:49 +0100 Subject: [PATCH] chore: enable cypress video recording in debug mode Signed-off-by: skjnldsv --- .github/workflows/cypress.yml | 6 ++++-- cypress.config.ts | 4 +++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/cypress.yml b/.github/workflows/cypress.yml index 1ce04ff0358a2..dfe124f29a9a7 100644 --- a/.github/workflows/cypress.yml +++ b/.github/workflows/cypress.yml @@ -124,8 +124,10 @@ jobs: uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1 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 4ee4d9ad41798..1c9c06dcc0d6b 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'.