Skip to content

Commit 56bf521

Browse files
author
Sarah Thompson
authored
Merge pull request #2128 from veteransaffairscanada/disable_summary_page
Disabled summary page
2 parents d3e2d52 + d20e5d1 commit 56bf521

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

cypress/integration/guided_experience_spec.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ describe("Guided Experience", function() {
1717
cy.url().should("include", "benefits-directory");
1818
});
1919

20-
it("can choose some options and get to summary and benefits directory", () => {
20+
it("can choose some options and get to benefits directory", () => {
2121
cy.contains(patronTypeVeteran).click();
2222
cy.get("#nextButton").click();
2323
cy.url().should("include", "serviceType?");
@@ -29,9 +29,9 @@ describe("Guided Experience", function() {
2929
cy.contains(patronTypeVeteran);
3030
});
3131

32-
it("can go back from summary and edit answer", () => {
33-
cy.visit("summary");
34-
cy.get("#edit-patronType").click();
35-
cy.contains("Select who would be receiving the benefits.");
36-
});
32+
// it("can go back from summary and edit answer", () => {
33+
// cy.visit("summary");
34+
// cy.get("#edit-patronType").click();
35+
// cy.contains("Select who would be receiving the benefits.");
36+
// });
3737
});

server.js

+4
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,10 @@ Promise.resolve(getAllData()).then(allData => {
139139
res
140140
.status(404)
141141
.send("The Favourites page only exists on the staging app.");
142+
} else if (req.url.includes("summary") && !staging) {
143+
res
144+
.status(404)
145+
.send("The summary page only exists on the staging app.");
142146
} else {
143147
const favouriteBenefits = new Cookies(req.headers.cookie).get(
144148
"favouriteBenefits"

0 commit comments

Comments
 (0)