From f2d40badfd30da5de12dd12f1d404c280619e7f1 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 356ea0970c9bc..99c7bad4d24ed 100644 --- a/.github/workflows/cypress.yml +++ b/.github/workflows/cypress.yml @@ -139,8 +139,10 @@ jobs: uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4.3.4 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 8bf65b90fa0cf..98ea63758cce0 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'.