Skip to content

Commit

Permalink
fix(ci): update cypress.yml to work in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ReidyT committed May 31, 2024
1 parent 23dd8a9 commit f8d9589
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/cypress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit f8d9589

Please sign in to comment.