Skip to content

Commit ec5d813

Browse files
committed
better test procedure
1 parent 30095b4 commit ec5d813

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

cypress/integration/form_spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const daten = {
55
}
66

77
beforeEach(() => {
8-
cy.visit("http://localhost:8080/");
8+
cy.visit("http://localhost:8088/");
99
cy.contains("Great Switch").click();
1010
cy.get("#name").type(daten.name);
1111
cy.get("#fancyness :nth-child(4) > input").click({force: true});

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,11 @@
1111
"repository": "https://github.com/educorvi/vue_json_form.git",
1212
"scripts": {
1313
"serve": "vue-cli-service serve",
14+
"serve:test": "vue-cli-service serve --port 8088",
1415
"cy:verify": "cypress verify",
1516
"cy:open": "npx cypress open",
1617
"cy:run": "cypress run",
17-
"test": "start-server-and-test serve 8080 cy:run",
18+
"test": "start-server-and-test 'serve:test' 8088 cy:run",
1819
"build": "npm run build:npm && npm run build:demo",
1920
"build:npm": "rimraf ./dist && webpack --config ./webpack.config.js",
2021
"analyze": "ANALYZE=true npm run build:demo",

0 commit comments

Comments
 (0)