Skip to content

Commit 6910b1a

Browse files
fix: run end-to-end test locally
1 parent 5ada93a commit 6910b1a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cypress/integration/first-test_spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
describe('Our Url ', function() {
22
it('opens', function() {
3-
cy.visit('https://lucid-franklin-367702.netlify.com/');
3+
cy.visit('http://localhost:8080/');
44
cy.contains('Javascript').click();
55
cy.url().should('include', '/javascript');
66
cy.contains('Simple Add').click();

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"start": "node server.js",
1111
"build": "webpack",
1212
"dev": "webpack-dev-server",
13-
"test": "yarn run cypress run",
13+
"test": "yarn dev & wait-on http://localhost:8080 & yarn run cypress run",
1414
"lint": "eslint src -c .eslintrc.json --ext js,jsx",
1515
"precommit": "yarn run lint"
1616
},

0 commit comments

Comments
 (0)