test: refs #6695 e2e fix base urls
gitea/salix-front/pipeline/pr-dev There was a failure building this commit
Details
gitea/salix-front/pipeline/pr-dev There was a failure building this commit
Details
This commit is contained in:
parent
4b78d9f9ec
commit
248edf9d88
|
@ -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: {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue