This repository has been archived by the owner on Jan 9, 2023. It is now read-only.
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.
ReportIncident save button always rendered #2548
Open
Description
🐛 Bug Report
In ReportIncident.test.tsx there is a test implying that the save button should only be rendered after all required inputs are filled out, however the save button is always rendered regardless of input values, so the test will always fail. It may be because the Date of Incident
input is prefilled with the current date/time, but in the staging app if you empty that input the page crashes.
To Reproduce
Uncomment the test and run npm t
Expected behavior
Test passes
Activity