diff --git a/.github/workflows/e2e-test-dispatch.yml b/.github/workflows/e2e-test-dispatch.yml index e7e501b5f..a415e32f9 100644 --- a/.github/workflows/e2e-test-dispatch.yml +++ b/.github/workflows/e2e-test-dispatch.yml @@ -72,6 +72,7 @@ jobs: uses: cypress-io/github-action@v5 with: start: yarn d2-app-scripts start + browser: chrome wait-on: ${{ github.event.inputs.instance_url }} wait-on-timeout: 300 record: ${{ env.SHOULD_RECORD }} diff --git a/cypress.config.js b/cypress.config.js index aafd2be7f..7f8fd7ee1 100644 --- a/cypress.config.js +++ b/cypress.config.js @@ -52,6 +52,7 @@ module.exports = defineConfig({ setupNodeEvents, baseUrl: 'http://localhost:3000', specPattern: 'cypress/e2e/**/*.feature', + chromeWebSecurity: false, // Allows cross-origin requests in Cypress }, env: { dhis2DataTestPrefix: 'dhis2-dataentry',