diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9bc165ea74ae1bb2b2fd57d8c62103b16131bcde..d3bd787042fbc8d8babf72e083de456fc49aa733 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -32,13 +32,9 @@ unit-tests: script: - npm run test:unit -e2e-tests: - stage: test - image: cypress/browsers:latest - variables: - CYPRESS_BASE_URL: "http://localhost:4173" - script: - - npm run test:e2e +test:e2e: + image: cypress/browsers:node16.14.2-slim-chrome100-ff99-edge + stage: npm run test:e2e test-coverage: stage: test diff --git a/cypress.config.ts b/cypress.config.ts index d7554dde589de52279ea96b181447f74862d9c0e..3b0082d8d060e60816c857dafd22ef7e42c74320 100644 --- a/cypress.config.ts +++ b/cypress.config.ts @@ -1,11 +1,11 @@ -import { defineConfig } from 'cypress' +import { defineConfig } from 'cypress'; export default defineConfig({ e2e: { - specPattern: 'cypress/e2e/**/*.{cy,spec}.{js,jsx,ts,tsx}', - baseUrl: 'http://localhost:4173', - setupNodeEvents(on, config) { - return config; - }, + baseUrl: 'http://localhost:4173/', + video: false, + }, + env: { + apiUrl: 'http://localhost:8080/', }, }); \ No newline at end of file