Skip to content

Commit

Permalink
test: enable video recording
Browse files Browse the repository at this point in the history
  • Loading branch information
Kuruyia committed Oct 10, 2024
1 parent 4b23300 commit 3788797
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 2 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/pull_request.workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,12 @@ jobs:
with:
name: cypress-snapshots
path: test/e2e/failed-test
if-no-files-found: ignore

- name: Upload videos
uses: actions/upload-artifact@v4
if: failure()
with:
name: cypress-videos
path: test/e2e/videos
if-no-files-found: ignore
9 changes: 9 additions & 0 deletions .github/workflows/push_dev.workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,15 @@ jobs:
with:
name: cypress-snapshots
path: test/e2e/failed-test
if-no-files-found: ignore

- name: Upload videos
uses: actions/upload-artifact@v4
if: failure()
with:
name: cypress-videos
path: test/e2e/videos
if-no-files-found: ignore

deploy-staging:
name: Deploy Admin Console to staging - next-console.kuzzle.io
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/push_master.workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,15 @@ jobs:
with:
name: cypress-snapshots
path: test/e2e/failed-test
if-no-files-found: ignore

- name: Upload videos
uses: actions/upload-artifact@v4
if: failure()
with:
name: cypress-videos
path: test/e2e/videos
if-no-files-found: ignore

deploy-production:
name: Deploy Admin Console to production - console.kuzzle.io
Expand Down
5 changes: 3 additions & 2 deletions cypress.config.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import { defineConfig } from 'cypress'

export default defineConfig({
fixturesFolder: 'test/e2e/cypress/fixtures',
fixturesFolder: 'test/e2e/cypress/fixtures/',
screenshotsFolder: 'test/e2e/failed-test/',
videosFolder: 'test/e2e/videos',
videosFolder: 'test/e2e/videos/',
projectId: 'qnb41a',
video: true,
viewportHeight: 800,
viewportWidth: 1400,
defaultCommandTimeout: 10000,
Expand Down

0 comments on commit 3788797

Please sign in to comment.