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