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({
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',

View File

@ -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
#

View File

@ -1,6 +1,6 @@
export default [
{
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: {
'/api': {
target: 'http://localhost:3000',
target: 'http://127.0.0.1:3000',
logLevel: 'debug',
changeOrigin: true,
secure: false,