diff --git a/cypress.config.js b/cypress.config.js index f2482db7e..559c0571e 100644 --- a/cypress.config.js +++ b/cypress.config.js @@ -5,7 +5,7 @@ import { defineConfig } from 'cypress'; export default defineConfig({ e2e: { - baseUrl: 'http://localhost:9000/', + baseUrl: 'http://127.0.0.1:9000/', experimentalStudio: true, fixturesFolder: 'test/cypress/fixtures', screenshotsFolder: 'test/cypress/screenshots', @@ -13,7 +13,7 @@ export default defineConfig({ videosFolder: 'test/cypress/videos', downloadsFolder: 'test/cypress/downloads', video: false, - specPattern: 'test/cypress/integration/claim/*.spec.js', + specPattern: 'test/cypress/integration/claim/claimAction.spec.js', experimentalRunAllSpecs: true, watchForFileChanges: true, reporter: 'cypress-mochawesome-reporter', diff --git a/docker-compose.e2e.yml b/docker-compose.e2e.yml index 7bf6576bb..2ed4ae4fc 100644 --- a/docker-compose.e2e.yml +++ b/docker-compose.e2e.yml @@ -2,7 +2,7 @@ version: '3.7' services: front: image: registry.verdnatura.es/salix-frontend:${VERSION:?} - command: quasar serve --history --proxy ./proxy.mjs --hostname localhost --port 9000 + command: quasar serve --history --proxy ./proxy.mjs --hostname 127.0.0.1 --port 9000 build: context: . dockerfile: ./Dockerfile @@ -21,6 +21,7 @@ services: # context: . # dockerfile: test/cypress/db/Dockerfile # network_mode: host + # privileged: true # volumes: # - /var/run/docker.sock:/var/run/docker.sock @@ -43,3 +44,4 @@ services: # build: # context: . # dockerfile: ./Dockerfile.e2e + # diff --git a/proxy.mjs b/proxy.mjs index 378368dd4..1e9bcf96b 100644 --- a/proxy.mjs +++ b/proxy.mjs @@ -1,6 +1,6 @@ export default [ { path: '/api', - rule: { target: 'http://localhost:3000' }, + rule: { target: 'http://127.0.0.1:3000' }, }, ]; diff --git a/quasar.config.js b/quasar.config.js index 4cdb2b8c4..9a354467c 100644 --- a/quasar.config.js +++ b/quasar.config.js @@ -109,7 +109,7 @@ export default configure(function (/* ctx */) { }, proxy: { '/api': { - target: 'http://localhost:3000', + target: 'http://127.0.0.1:3000', logLevel: 'debug', changeOrigin: true, secure: false,