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="/" > - +