diff --git a/client/cypress/integration/About.feature b/client/cypress/integration/About.feature index cc4063b0..2b828bc6 100644 --- a/client/cypress/integration/About.feature +++ b/client/cypress/integration/About.feature @@ -6,7 +6,7 @@ Feature: The About page will open from all other pages When I click on the "About" page in the navigation Then I see "About" in the title - Scenario: About page open when navigating from Explore the Tool page + Scenario: About page open when navigating from Explore the map page Given I am on the "Explore" page # When I click on the "About" dropdown in the navigation When I click on the "About" page in the navigation diff --git a/client/cypress/integration/AboutLinks.feature b/client/cypress/integration/AboutLinks.feature index b89db2a1..46cf5718 100644 --- a/client/cypress/integration/AboutLinks.feature +++ b/client/cypress/integration/AboutLinks.feature @@ -17,7 +17,7 @@ Feature: All links on About page are functional Given I am on the "About" page When I look for the "Community members" CTA And I click on the "Community members" "internal" link - Then I see "Explore the tool" in the title + Then I see "Explore the map" in the title Scenario: People can find how to Send feedback Given I am on the "About" page diff --git a/client/cypress/integration/Contact.feature b/client/cypress/integration/Contact.feature index da47e0c3..dd2795b1 100644 --- a/client/cypress/integration/Contact.feature +++ b/client/cypress/integration/Contact.feature @@ -5,7 +5,7 @@ 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 + Scenario: Contact page open when navigating from Explore the map page Given I am on the "Explore" page When I click on the "Contact" page in the navigation Then I see "Contact" in the title diff --git a/client/cypress/integration/Explore.feature b/client/cypress/integration/Explore.feature index faf66661..a8635537 100644 --- a/client/cypress/integration/Explore.feature +++ b/client/cypress/integration/Explore.feature @@ -1,16 +1,16 @@ -Feature: The Explore the tool page will open from all other pages +Feature: The Explore the map page will open from all other pages - Scenario: Explore the tool page open when navigating from About page + Scenario: Explore the map page open when navigating from About page Given I am on the "About" page - When I click on the "Explore the tool" page in the navigation - Then I see "Explore the tool" in the title + When I click on the "Explore the map" page in the navigation + Then I see "Explore the map" in the title - Scenario: Explore the tool page open when navigating from Methodology page + Scenario: Explore the map page open when navigating from Methodology page Given I am on the "Methodology" page - When I click on the "Explore the tool" page in the navigation - Then I see "Explore the tool" in the title + When I click on the "Explore the map" page in the navigation + Then I see "Explore the map" in the title - Scenario: Explore the tool page open when navigating from Contact page + Scenario: Explore the map page open when navigating from Contact page Given I am on the "Contact" page - When I click on the "Explore the tool" page in the navigation - Then I see "Explore the tool" in the title \ No newline at end of file + When I click on the "Explore the map" page in the navigation + Then I see "Explore the map" in the title \ No newline at end of file diff --git a/client/cypress/integration/Methodology.feature b/client/cypress/integration/Methodology.feature index 973ac151..9d8d0dcb 100644 --- a/client/cypress/integration/Methodology.feature +++ b/client/cypress/integration/Methodology.feature @@ -6,7 +6,7 @@ Feature: The Methodology page will open from all other pages When I click on the "Methodology" page in the navigation Then I see "Methodology" in the title - Scenario: Methodology page open when navigating from Explore the tool page + Scenario: Methodology page open when navigating from Explore the map page Given I am on the "Explore" page # When I click on the "Methodology" dropdown in the navigation When I click on the "Methodology" page in the navigation diff --git a/client/src/components/AreaDetail/AreaDetail.tsx b/client/src/components/AreaDetail/AreaDetail.tsx index 3740810f..2e6669d5 100644 --- a/client/src/components/AreaDetail/AreaDetail.tsx +++ b/client/src/components/AreaDetail/AreaDetail.tsx @@ -1,8 +1,8 @@ /* eslint-disable quotes */ // External Libs: import React from 'react'; -import { useIntl } from 'gatsby-plugin-intl'; -import { Accordion, Button } from '@trussworks/react-uswds'; +import {useIntl} from 'gatsby-plugin-intl'; +import {Accordion, Button} from '@trussworks/react-uswds'; // Components: import Category from '../Category'; @@ -41,7 +41,7 @@ export interface indicatorInfo { threshold?: number, } -const AreaDetail = ({ properties, hash }: IAreaDetailProps) => { +const AreaDetail = ({properties, hash}: IAreaDetailProps) => { const intl = useIntl(); // console.log the properties of the census that is selected: @@ -72,44 +72,44 @@ const AreaDetail = ({ properties, hash }: IAreaDetailProps) => { if (sidePanelState === constants.SIDE_PANEL_STATE_VALUES.ISLAND_AREAS) { if (indicatorName === 'lowMedInc') { return properties.hasOwnProperty(constants - .ISLAND_AREAS_LOW_MEDIAN_INCOME_LOW_HS_EDU_PERCENTILE_FIELD) ? + .ISLAND_AREAS_LOW_MEDIAN_INCOME_LOW_HS_EDU_PERCENTILE_FIELD) ? properties[constants.ISLAND_AREAS_LOW_MEDIAN_INCOME_LOW_HS_EDU_PERCENTILE_FIELD] : null; } if (indicatorName === 'unemploy') { return properties.hasOwnProperty(constants - .ISLAND_AREAS_UNEMPLOYMENT_LOW_HS_EDU_PERCENTILE_FIELD) ? + .ISLAND_AREAS_UNEMPLOYMENT_LOW_HS_EDU_PERCENTILE_FIELD) ? properties[constants.ISLAND_AREAS_UNEMPLOYMENT_LOW_HS_EDU_PERCENTILE_FIELD] : null; } if (indicatorName === 'poverty') { return properties.hasOwnProperty(constants - .ISLAND_AREAS_POVERTY_LOW_HS_EDU_PERCENTILE_FIELD) ? + .ISLAND_AREAS_POVERTY_LOW_HS_EDU_PERCENTILE_FIELD) ? properties[constants.ISLAND_AREAS_POVERTY_LOW_HS_EDU_PERCENTILE_FIELD] : null; } if (indicatorName === 'highSchool') { return properties.hasOwnProperty(constants - .ISLAND_AREAS_HS_EDU_PERCENTAGE_FIELD) ? + .ISLAND_AREAS_HS_EDU_PERCENTAGE_FIELD) ? properties[constants.ISLAND_AREAS_HS_EDU_PERCENTAGE_FIELD] : null; } } if (indicatorName === 'lowMedInc') { return properties.hasOwnProperty(constants - .LOW_MEDIAN_INCOME_PERCENTILE) ? + .LOW_MEDIAN_INCOME_PERCENTILE) ? properties[constants.LOW_MEDIAN_INCOME_PERCENTILE] : null; } if (indicatorName === 'unemploy') { return properties.hasOwnProperty(constants - .UNEMPLOYMENT_PROPERTY_PERCENTILE) ? + .UNEMPLOYMENT_PROPERTY_PERCENTILE) ? properties[constants.UNEMPLOYMENT_PROPERTY_PERCENTILE] : null; } if (indicatorName === 'poverty') { return properties.hasOwnProperty(constants - .POVERTY_BELOW_100_PERCENTILE) ? + .POVERTY_BELOW_100_PERCENTILE) ? properties[constants.POVERTY_BELOW_100_PERCENTILE] : null; } if (indicatorName === 'highSchool') { return properties.hasOwnProperty(constants - .HIGH_SCHOOL_PROPERTY_PERCENTILE) ? + .HIGH_SCHOOL_PROPERTY_PERCENTILE) ? properties[constants.HIGH_SCHOOL_PROPERTY_PERCENTILE] : null; } }; @@ -124,44 +124,44 @@ const AreaDetail = ({ properties, hash }: IAreaDetailProps) => { if (sidePanelState === constants.SIDE_PANEL_STATE_VALUES.ISLAND_AREAS) { if (indicatorName === 'lowMedInc') { return properties.hasOwnProperty(constants - .IS_EXCEEDS_THRESH_FOR_ISLAND_AREA_LOW_MEDIAN_INCOME) ? + .IS_EXCEEDS_THRESH_FOR_ISLAND_AREA_LOW_MEDIAN_INCOME) ? properties[constants.IS_EXCEEDS_THRESH_FOR_ISLAND_AREA_LOW_MEDIAN_INCOME] : null; } if (indicatorName === 'unemploy') { return properties.hasOwnProperty(constants - .IS_EXCEEDS_THRESH_FOR_ISLAND_AREA_UNEMPLOYMENT) ? + .IS_EXCEEDS_THRESH_FOR_ISLAND_AREA_UNEMPLOYMENT) ? properties[constants.IS_EXCEEDS_THRESH_FOR_ISLAND_AREA_UNEMPLOYMENT] : null; } if (indicatorName === 'poverty') { return properties.hasOwnProperty(constants - .IS_EXCEEDS_THRESH_FOR_ISLAND_AREA_BELOW_100_POVERTY) ? + .IS_EXCEEDS_THRESH_FOR_ISLAND_AREA_BELOW_100_POVERTY) ? properties[constants.IS_EXCEEDS_THRESH_FOR_ISLAND_AREA_BELOW_100_POVERTY] : null; } if (indicatorName === 'highSchool') { return properties.hasOwnProperty(constants - .ISLAND_AREA_LOW_HS_EDU) ? + .ISLAND_AREA_LOW_HS_EDU) ? properties[constants.ISLAND_AREA_LOW_HS_EDU] : null; } } if (indicatorName === 'lowMedInc') { return properties.hasOwnProperty(constants - .IS_EXCEEDS_THRESH_FOR_LOW_MEDIAN_INCOME) ? + .IS_EXCEEDS_THRESH_FOR_LOW_MEDIAN_INCOME) ? properties[constants.IS_EXCEEDS_THRESH_FOR_LOW_MEDIAN_INCOME] : null; } if (indicatorName === 'unemploy') { return properties.hasOwnProperty(constants - .IS_EXCEEDS_THRESH_FOR_UNEMPLOYMENT) ? + .IS_EXCEEDS_THRESH_FOR_UNEMPLOYMENT) ? properties[constants.IS_EXCEEDS_THRESH_FOR_UNEMPLOYMENT] : null; } if (indicatorName === 'poverty') { return properties.hasOwnProperty(constants - .IS_EXCEEDS_THRESH_FOR_BELOW_100_POVERTY) ? + .IS_EXCEEDS_THRESH_FOR_BELOW_100_POVERTY) ? properties[constants.IS_EXCEEDS_THRESH_FOR_BELOW_100_POVERTY] : null; } if (indicatorName === 'highSchool') { return properties.hasOwnProperty(constants - .IS_LOW_HS_EDUCATION_LOW_HIGHER_ED_PRIORITIZED) && + .IS_LOW_HS_EDUCATION_LOW_HIGHER_ED_PRIORITIZED) && properties[constants.IS_LOW_HS_EDUCATION_LOW_HIGHER_ED_PRIORITIZED] == 1 ? true : false; } diff --git a/client/src/components/Categories/__snapshots__/Categories.test.tsx.snap b/client/src/components/Categories/__snapshots__/Categories.test.tsx.snap index 6213f221..e52c4f0a 100644 --- a/client/src/components/Categories/__snapshots__/Categories.test.tsx.snap +++ b/client/src/components/Categories/__snapshots__/Categories.test.tsx.snap @@ -313,7 +313,7 @@ exports[`rendering of the Categories checks if component renders 1`] = `

- Critical clean water and wasterwater infrastructure + Critical clean water and wastewater infrastructure

diff --git a/client/src/components/HowYouCanHelp/tests/__snapshots__/howYouCanHelp.test.tsx.snap b/client/src/components/HowYouCanHelp/tests/__snapshots__/howYouCanHelp.test.tsx.snap index 4980eb78..d40c188f 100644 --- a/client/src/components/HowYouCanHelp/tests/__snapshots__/howYouCanHelp.test.tsx.snap +++ b/client/src/components/HowYouCanHelp/tests/__snapshots__/howYouCanHelp.test.tsx.snap @@ -4,7 +4,7 @@ exports[`rendering of the HowYouCanHelp checks if various text fields are visibl

- How you can help improve the tool + How you can help improve the map

@@ -1071,6 +1071,8 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis >