codeforpdx / PASS

PASS project - with HMIS module integration
MIT License
24 stars 23 forks source link

[Bug Report] - Resolve failing Basic Info tests #627

Closed andycwilliams closed 1 month ago

andycwilliams commented 2 months ago

Describe the bug:

Two of the three tests for the Basic Info form, found in BasicInfo.test.jsx, are not passing. In order to retain complete test coverage, we want every test to pass.

To Reproduce:

Steps to reproduce the behavior:

  1. Un-comment out the tests
  2. Run npm run test in the root directory

Possible Fix:

Likely related to the data types being entered into the form. Strings are processing as intended, but BasicInfo has date as well as a select input. The test must account for these as well.

See useCivicProfile.js for more info about the data that the Basic Info form uses as a hook.