expunge-assist icon indicating copy to clipboard operation
expunge-assist copied to clipboard

Input Testing

Open sydneywalcoff opened this issue 11 months ago • 5 comments

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)

Resources/Notes

Jest React Testing Library

sydneywalcoff avatar Mar 11 '24 22:03 sydneywalcoff