From 3e231a74b23a1bea2d3defd12fde0a06c883fa74 Mon Sep 17 00:00:00 2001 From: Sarah Thompson Date: Tue, 30 Apr 2019 10:47:15 -0300 Subject: [PATCH 1/4] 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/4] 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."); + // }); }); From 4aa0e604199c997ba40892a2092a178be915c1a6 Mon Sep 17 00:00:00 2001 From: Sarah Thompson Date: Wed, 1 May 2019 10:27:48 -0300 Subject: [PATCH 3/4] updated fallback page: changed background colour, removed feedback bar, updated french url --- components/layout.js | 15 +++-- fallback-pages/browser-incompatible.html | 81 +++++++++++++----------- pages/all-benefits.js | 3 + 3 files changed, 56 insertions(+), 43 deletions(-) diff --git a/components/layout.js b/components/layout.js index dd2b798d8..bb9704346 100644 --- a/components/layout.js +++ b/components/layout.js @@ -91,11 +91,13 @@ class Layout extends Component {
{this.props.children}
-
- - - -
+ {!this.props.parentIsFallbackPage ? ( +
+ + + +
+ ) : null} ) : null} - + {!this.props.parentIsFallbackPage ? ( + + ) : null} {noScriptTag}