Skip to content
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
@codyarose

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.

#2516 (comment)

To Reproduce

Uncomment the test and run npm t

Expected behavior

Test passes

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

incidentsneeds requirementsindicates that an issue needs more requirements in order to be worked on🐛bugissue/pull request that documents/fixes a bug

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions