diff --git a/package.json b/package.json index a183965..e5d0115 100644 --- a/package.json +++ b/package.json @@ -13,8 +13,8 @@ "build": "npm run clean && webpack", "test": "npm run test:unit", "test:unit": "NODE_ENV=development; LOG_LEVEL=error; JASMINE_CONFIG_PATH=src/test/app/jasmine.json jasmine", - "test:e2e": "CYPRESS_coverage=false cypress run --browser chrome", - "test:e2e:watch": "CYPRESS_coverage=false cypress open --browser chrome", + "test:e2e": "CYPRESS_coverage=false cypress run --config '{\"specPattern\":[\"test/end-to-end/cypress/*.js\"]}' --browser chrome", + "test:e2e:watch": "CYPRESS_coverage=false cypress open --config '{\"specPattern\":[\"test/end-to-end/cypress/*.js\"]}' --e2e --browser chrome", "lint": "npm-run-all lint:all:*", "lint:all:js": "eslint ./test ./src", "lint:modified:js": "CHANGED_FILES=$(git diff --staged --name-only -- '*.js'); if [ \"$CHANGED_FILES\" ]; then eslint $(echo $CHANGED_FILES); fi", diff --git a/test/end-to-end/cypress/homepage-spec.cy.js b/test/end-to-end/cypress/homepage-spec.cy.js new file mode 100644 index 0000000..cda9e62 --- /dev/null +++ b/test/end-to-end/cypress/homepage-spec.cy.js @@ -0,0 +1,7 @@ +describe("homepage spec", () => { + it("visits OMIS root page", () => { + cy.visit("http://localhost:4000"); + cy.get("h1").should("exist").and("have.text", "About this service"); + }); + }); + \ No newline at end of file diff --git a/cypress/e2e/spec.cy.js b/test/end-to-end/cypress/quote-spec.cy.js similarity index 62% rename from cypress/e2e/spec.cy.js rename to test/end-to-end/cypress/quote-spec.cy.js index b42c0a4..8c31539 100644 --- a/cypress/e2e/spec.cy.js +++ b/test/end-to-end/cypress/quote-spec.cy.js @@ -1,9 +1,4 @@ -describe("template spec", () => { - it("visits OMIS root page", () => { - cy.visit("http://localhost:4000"); - cy.get("h1").should("exist").and("have.text", "About this service"); - }); - +describe("quote spec", () => { it("visits OMIS order page", () => { cy.visit( "http://localhost:4000/7AGZC7uaAIV-5L34J5lnZXHvFG9J1xnbBQnieAUCn-LRJpr-QA"