Skip to content

Commit

Permalink
Add support for multiple tests and move out of ignored folder
Browse files Browse the repository at this point in the history
  • Loading branch information
cgsunkel committed Apr 17, 2024
1 parent 8dfe618 commit 3537197
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
7 changes: 7 additions & 0 deletions test/end-to-end/cypress/homepage-spec.cy.js
Original file line number Diff line number Diff line change
@@ -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");
});
});

Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit 3537197

Please sign in to comment.