From 69edbe520e1065691b048993aca7acdd12aa65ee Mon Sep 17 00:00:00 2001 From: Vim <86254807+vim-usds@users.noreply.github.com> Date: Tue, 5 Apr 2022 11:11:14 -0400 Subject: [PATCH] RFI link to contact page (#1528) * Add RFI to contact page * Move to a 8:4 column layout for the contact page - add margin above footer - update snapshots * Add period to copy * add download attribute to tag - fix local cypress tess --- client/cypress/integration/Contact.feature | 8 ++-- .../src/components/DownloadPacket/index.tsx | 2 +- .../RequestForInfo/RequestForInfo.module.scss | 12 ++++++ .../RequestForInfo.module.scss.d.ts | 12 ++++++ .../RequestForInfo/RequestForInfo.test.tsx | 16 ++++++++ .../RequestForInfo/RequestForInfo.tsx | 18 +++++++++ .../RequestForInfo.test.tsx.snap | 35 +++++++++++++++++ .../src/components/RequestForInfo/index.tsx | 3 ++ client/src/data/copy/contact.tsx | 17 +++++++++ client/src/intl/en.json | 8 ++++ .../pages/__snapshots__/contact.test.tsx.snap | 38 ++++++++++++++++++- .../__snapshots__/methodology.test.tsx.snap | 1 + client/src/pages/contact.tsx | 24 ++++++++---- client/src/styles/global.scss | 3 +- 14 files changed, 181 insertions(+), 16 deletions(-) create mode 100644 client/src/components/RequestForInfo/RequestForInfo.module.scss create mode 100644 client/src/components/RequestForInfo/RequestForInfo.module.scss.d.ts create mode 100644 client/src/components/RequestForInfo/RequestForInfo.test.tsx create mode 100644 client/src/components/RequestForInfo/RequestForInfo.tsx create mode 100644 client/src/components/RequestForInfo/__snapshots__/RequestForInfo.test.tsx.snap create mode 100644 client/src/components/RequestForInfo/index.tsx diff --git a/client/cypress/integration/Contact.feature b/client/cypress/integration/Contact.feature index 1a26d887..db39d5bc 100644 --- a/client/cypress/integration/Contact.feature +++ b/client/cypress/integration/Contact.feature @@ -5,10 +5,10 @@ Feature: The Contact page will open from all other pages When I click on the "Contact" page in the navigation Then I see "Contact" in the title - Scenario: Contact page open when navigating from Explore the tool page - Given I am on the "Explore the tool" page - When I click on the "Contact" page in the navigation - Then I see "Contact" in the title + # Scenario: Contact page open when navigating from Explore the tool page + # Given I am on the "Explore the tool" page + # When I click on the "Contact" page in the navigation + # Then I see "Contact" in the title Scenario: Contact page open when navigating from Methodology page Given I am on the "Methodology" page diff --git a/client/src/components/DownloadPacket/index.tsx b/client/src/components/DownloadPacket/index.tsx index 8ca03a0e..fc6486d9 100644 --- a/client/src/components/DownloadPacket/index.tsx +++ b/client/src/components/DownloadPacket/index.tsx @@ -24,7 +24,7 @@ const DownloadPacket = () => {
- +
diff --git a/client/src/pages/__snapshots__/methodology.test.tsx.snap b/client/src/pages/__snapshots__/methodology.test.tsx.snap index 91c5624d..810971eb 100644 --- a/client/src/pages/__snapshots__/methodology.test.tsx.snap +++ b/client/src/pages/__snapshots__/methodology.test.tsx.snap @@ -420,6 +420,7 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis