mirror of
https://github.com/Haiti-Distributed-Healthcare-System/hdhs.git
synced 2026-10-26 17:35:23 +00:00
removing integ test now covered in unit testing, replaced placeholder with actual component
This commit is contained in:
1 parent
052870b231
commit
7e55e0bf17
2 files changed
+2
-37
No files matched your search
@@ -1,35 +0,0 @@
|
||||
// Testing for the Patient Info Form fields
|
||||
/// <reference types="cypress" />
|
||||
|
||||
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 { };
|
||||
+2
-2
@@ -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="/"
|
||||
>
|
||||
<PatientInfoPlaceholder />
|
||||
<PatientInfoForm />
|
||||
</Wrapper>
|
||||
</Route>
|
||||
<Route path="/">
|
||||
|
||||
Reference in new issue
Block a user