From 3e231a74b23a1bea2d3defd12fde0a06c883fa74 Mon Sep 17 00:00:00 2001 From: Sarah Thompson Date: Tue, 30 Apr 2019 10:47:15 -0300 Subject: [PATCH 1/2] disabled summary page --- server.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server.js b/server.js index 4b4c50833..e6bdb39ef 100644 --- a/server.js +++ b/server.js @@ -139,6 +139,10 @@ Promise.resolve(getAllData()).then(allData => { res .status(404) .send("The Favourites page only exists on the staging app."); + } else if (req.url.includes("summary") && !staging) { + res + .status(404) + .send("The summary page only exists on the staging app."); } else { const favouriteBenefits = new Cookies(req.headers.cookie).get( "favouriteBenefits" From 987d953c02960161df9dbbb21cdc2888b29c0e77 Mon Sep 17 00:00:00 2001 From: Sarah Thompson Date: Tue, 30 Apr 2019 15:40:05 -0300 Subject: [PATCH 2/2] commented out the summary page in cypress tests --- cypress/integration/guided_experience_spec.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/cypress/integration/guided_experience_spec.js b/cypress/integration/guided_experience_spec.js index ca7fb193f..5296d6e23 100644 --- a/cypress/integration/guided_experience_spec.js +++ b/cypress/integration/guided_experience_spec.js @@ -17,7 +17,7 @@ describe("Guided Experience", function() { cy.url().should("include", "benefits-directory"); }); - it("can choose some options and get to summary and benefits directory", () => { + it("can choose some options and get to benefits directory", () => { cy.contains(patronTypeVeteran).click(); cy.get("#nextButton").click(); cy.url().should("include", "serviceType?"); @@ -29,9 +29,9 @@ describe("Guided Experience", function() { cy.contains(patronTypeVeteran); }); - it("can go back from summary and edit answer", () => { - cy.visit("summary"); - cy.get("#edit-patronType").click(); - cy.contains("Select who would be receiving the benefits."); - }); + // it("can go back from summary and edit answer", () => { + // cy.visit("summary"); + // cy.get("#edit-patronType").click(); + // cy.contains("Select who would be receiving the benefits."); + // }); });