From f8d9589e205b8dc016eae3fb49429aa50e91f8ee Mon Sep 17 00:00:00 2001 From: Thibault Reidy Date: Fri, 31 May 2024 10:42:48 +0200 Subject: [PATCH] fix(ci): update cypress.yml to work in CI --- .github/workflows/cypress.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/cypress.yml b/.github/workflows/cypress.yml index b8febdb05..74bdbb777 100644 --- a/.github/workflows/cypress.yml +++ b/.github/workflows/cypress.yml @@ -47,11 +47,12 @@ jobs: VITE_SHOW_NOTIFICATIONS: ${{ vars.VITE_SHOW_NOTIFICATIONS }} VITE_GRAASP_REDIRECTION_HOST: ${{ vars.VITE_GRAASP_REDIRECTION_HOST }} - # use the Cypress GitHub Action to run Cypress E2E tests within the chrome browser - - name: Cypress run + # use the Cypress GitHub Action to run Cypress Component tests within the chrome browser + - name: Cypress run components uses: cypress-io/github-action@v6 with: install: false + component: true # we launch the app in preview mode to avoid issues with hmr websockets from vite polluting the mocks start: yarn preview:test browser: chrome @@ -70,14 +71,12 @@ jobs: VITE_SHOW_NOTIFICATIONS: ${{ vars.VITE_SHOW_NOTIFICATIONS }} VITE_GRAASP_REDIRECTION_HOST: ${{ vars.VITE_GRAASP_REDIRECTION_HOST }} - # use the Cypress GitHub Action to run Cypress Component tests within the chrome browser - - name: Cypress run components + # use the Cypress GitHub Action to run Cypress E2E tests within the chrome browser + - name: Cypress run uses: cypress-io/github-action@v6 with: install: false - component: true - # we launch the app in preview mode to avoid issues with hmr websockets from vite polluting the mocks - start: yarn preview:test + # the app preview is already run for the component tests browser: chrome quiet: true config-file: cypress.config.ts