console: handle baseUrl in tests

This commit is contained in:
Rishichandra Wawhal 2018-07-09 13:34:53 +05:30 committed by Praveen Durairaj
parent 38c91e2b9e
commit 25a45d3366
4 changed files with 431 additions and 417 deletions

View File

@ -1,4 +1,4 @@
export const testMode = Cypress.env('TEST_MODE');
export const baseUrl = Cypress.env('BASE_URL');
export const baseUrl = Cypress.config('baseUrl');
export const migrateUrl = Cypress.env('MIGRATE_URL');
export const migrateModeUrl = `${migrateUrl}/settings`;

View File

@ -1,4 +1,4 @@
export const baseUrl = Cypress.env('BASE_URL');
export const baseUrl = Cypress.config('baseUrl');
export const dataTypes = [
'serial',
'bigserial',

File diff suppressed because it is too large Load Diff

View File

@ -22,7 +22,7 @@
"dev": "concurrently --kill-others \"npm run watch-client\" \"npm run start-dev\" ",
"precommit": "lint-staged",
"cypress": "cypress open",
"test": "cypress run --spec 'cypress/integration/test_complete.js'"
"test": "cypress run --spec 'cypress/integration/test_complete.js' --config baseUrl=$CYPRESS_BASE_URL"
},
"lint-staged": {
"*.js": [