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."); + // }); }); 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"