Skip to content

Commit f439d9e

Browse files
author
Vasyl Stokolosa
committed
Cypress visitURL config
1 parent e17a716 commit f439d9e

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

app/tests/e2e/cypress/integration/create_react_redux_app_structure_spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
const config = require('./../../../../config.json');
1+
const config = require('./../../../../../cypress.json');
22

33
describe('create-react-redux-app-structure', function() {
44
it('should assert that <title> is correct', function() {
5-
cy.visit(config.dev.serverHost);
5+
cy.visit(config.basicConfig.dev.visitURL);
66

77
cy.title().should('include', 'Create React + Redux App Structure');
88
});

cypress.json

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,16 @@
22
"fileServerFolder": "app/tests/e2e/",
33
"integrationFolder": "app/tests/e2e/cypress/integration",
44
"fixturesFolder": "app/tests/e2e/cypress/fixtures",
5-
"supportFile": "app/tests/e2e/cypress/support"
5+
"supportFile": "app/tests/e2e/cypress/support",
6+
"basicConfig": {
7+
"staging": {
8+
"visitURL": "."
9+
},
10+
"prod": {
11+
"visitURL": "."
12+
},
13+
"dev": {
14+
"visitURL": "http://localhost:8080/"
15+
}
16+
}
617
}

0 commit comments

Comments
 (0)