test: refs #6695 e2e fix base urls
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details

This commit is contained in:
Alex Moreno 2025-02-10 08:16:05 +01:00
parent 4b78d9f9ec
commit 248edf9d88
3 changed files with 7 additions and 8 deletions

View File

@ -4,9 +4,8 @@ import { defineConfig } from 'cypress';
// https://docs.cypress.io/app/references/configuration
// https://www.npmjs.com/package/cypress-mochawesome-reporter
// const baseUrl = `http://${process.env.NETWORK ? 'front' : 'localhost'}:9000`;
const baseUrl = `http://front:9000`;
console.log('process.env.NETWORK: ', process.env.NETWORK);
const baseUrl = `http://${process.env.NETWORK ? 'front' : 'localhost'}:9000`;
// const baseUrl = `http://front:9000`;
export default defineConfig({
e2e: {

View File

@ -14,12 +14,12 @@ services:
volumes:
- .:/app
working_dir: /app
# ports:
# - '9000:9000'
ports:
- '9000:9000'
e2e:
image: alexmorenovn/vndev:latest
# command: pnpm exec cypress run --browser chromium
command: sh -c "pnpm exec cypress install && pnpm exec cypress run --browser chromium"
command: pnpm exec cypress run --browser chromium
# command: sh -c "pnpm exec cypress install && pnpm exec cypress run --browser chromium"
volumes:
- .:/app
working_dir: /app

View File

@ -11,7 +11,7 @@
import { configure } from 'quasar/wrappers';
import VueI18nPlugin from '@intlify/unplugin-vue-i18n/vite';
import path from 'path';
const target = `http://${process.env.NETWORK || 'localhost'}:3000`;
const target = `http://${process.env.NETWORK ? 'back' : 'localhost'}:3000`;
export default configure(function (/* ctx */) {
return {