expunge-assist
expunge-assist copied to clipboard
Input Testing
Dependency
- [x] #1250
- [x] #1267
Overview
Testing is an important part of the development process that has been ignored in the Expunge Assist process thus far. To create a better protected codebase, we want to retroactively implement tests.
Create tests for the below scenarios. Feel free to include additional tests if you find opportunities for more coverage.
Action Items
- [x] input sets up correctly
- [x] input renders
- [x] input displays the correct initial value
- [x] inputs validate responses
- [x] number inputs don't allow numbers below zero
- [x] valid responses show valid icon
- [x] removing a response will remove valid icon
- [x] passes props correctly
- [x] passes id
- [x] passes placeholder
- [x] passes type
- [x] is accessible
- [x] is focus-able
- [x] does not trap focus (pressing tab with more than one focus-able element present will move focus to next available element)