From 7e55e0bf17d64618561eb5bbc1b2bad690798618 Mon Sep 17 00:00:00 2001 From: Meghan McLaughlin Date: Wed, 15 Apr 2020 09:28:23 -0500 Subject: [PATCH] removing integ test now covered in unit testing, replaced placeholder with actual component --- pwa/cypress/integration/PatientInfoForm.ts | 35 ---------------------- pwa/src/App.tsx | 4 +-- 2 files changed, 2 insertions(+), 37 deletions(-) delete mode 100644 pwa/cypress/integration/PatientInfoForm.ts diff --git a/pwa/cypress/integration/PatientInfoForm.ts b/pwa/cypress/integration/PatientInfoForm.ts deleted file mode 100644 index 22e13f8..0000000 --- a/pwa/cypress/integration/PatientInfoForm.ts +++ /dev/null @@ -1,35 +0,0 @@ -// Testing for the Patient Info Form fields -/// - -describe('female-only fields show only if Female is selected', () => { - const femaleOnlyFormFields = [ - 'Pregnant?', - 'LMP', - 'Wants Planning?' - ] - - it('does not display fields is no slection is made', function () { - cy.visit('http://localhost:3000'); - femaleOnlyFormFields.forEach((fieldText) => { - cy.contains(fieldText).should('not.exist'); - }) - }); - - it('does not display fields if Male is selected', function () { - cy.visit('http://localhost:3000'); - cy.get('#male-button').click(); - femaleOnlyFormFields.forEach((fieldText) => { - cy.contains(fieldText).should('not.exist'); - }) - }); - - it('displays fields if Female is selected', function () { - cy.visit('http://localhost:3000'); - cy.get('#female-button').click(); - femaleOnlyFormFields.forEach((fieldText) => { - cy.contains(fieldText); - }) - }); -}); - -export { }; \ No newline at end of file diff --git a/pwa/src/App.tsx b/pwa/src/App.tsx index 66aed54..016b820 100644 --- a/pwa/src/App.tsx +++ b/pwa/src/App.tsx @@ -3,7 +3,7 @@ import { BrowserRouter as Router, Switch, Route } from "react-router-dom"; import Login from "./components/Login"; import LandingPage from "./components/LandingPage"; -import PatientInfoPlaceholder from "./components/PatientInfoPlaceholder"; +import PatientInfoForm from "./components/PatientInfoForm"; import Wrapper from "./Wrapper"; import "./scss/App.scss"; @@ -25,7 +25,7 @@ const App = () => { leftArrowText="Home" leftArrowRoute="/" > - +