build: refs #6695 try run e2e
gitea/salix-front/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Alex Moreno 2025-01-31 12:30:23 +01:00
parent 8720371827
commit e9d4d79da0
4 changed files with 7 additions and 5 deletions

View File

@ -5,7 +5,7 @@ import { defineConfig } from 'cypress';
export default defineConfig({ export default defineConfig({
e2e: { e2e: {
baseUrl: 'http://localhost:9000/', baseUrl: 'http://127.0.0.1:9000/',
experimentalStudio: true, experimentalStudio: true,
fixturesFolder: 'test/cypress/fixtures', fixturesFolder: 'test/cypress/fixtures',
screenshotsFolder: 'test/cypress/screenshots', screenshotsFolder: 'test/cypress/screenshots',
@ -13,7 +13,7 @@ export default defineConfig({
videosFolder: 'test/cypress/videos', videosFolder: 'test/cypress/videos',
downloadsFolder: 'test/cypress/downloads', downloadsFolder: 'test/cypress/downloads',
video: false, video: false,
specPattern: 'test/cypress/integration/claim/*.spec.js', specPattern: 'test/cypress/integration/claim/claimAction.spec.js',
experimentalRunAllSpecs: true, experimentalRunAllSpecs: true,
watchForFileChanges: true, watchForFileChanges: true,
reporter: 'cypress-mochawesome-reporter', reporter: 'cypress-mochawesome-reporter',

View File

@ -2,7 +2,7 @@ version: '3.7'
services: services:
front: front:
image: registry.verdnatura.es/salix-frontend:${VERSION:?} 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: build:
context: . context: .
dockerfile: ./Dockerfile dockerfile: ./Dockerfile
@ -21,6 +21,7 @@ services:
# context: . # context: .
# dockerfile: test/cypress/db/Dockerfile # dockerfile: test/cypress/db/Dockerfile
# network_mode: host # network_mode: host
# privileged: true
# volumes: # volumes:
# - /var/run/docker.sock:/var/run/docker.sock # - /var/run/docker.sock:/var/run/docker.sock
@ -43,3 +44,4 @@ services:
# build: # build:
# context: . # context: .
# dockerfile: ./Dockerfile.e2e # dockerfile: ./Dockerfile.e2e
#

View File

@ -1,6 +1,6 @@
export default [ export default [
{ {
path: '/api', path: '/api',
rule: { target: 'http://localhost:3000' }, rule: { target: 'http://127.0.0.1:3000' },
}, },
]; ];

View File

@ -109,7 +109,7 @@ export default configure(function (/* ctx */) {
}, },
proxy: { proxy: {
'/api': { '/api': {
target: 'http://localhost:3000', target: 'http://127.0.0.1:3000',
logLevel: 'debug', logLevel: 'debug',
changeOrigin: true, changeOrigin: true,
secure: false, secure: false,