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

Checkbox Testing

Open sydneywalcoff opened this issue 11 months ago • 8 comments

Dependency

  • [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.

Action Items

  • [ ] Checkbox sets up correctly
    • [ ] Checkbox renders
    • [ ] renders correct initial state
  • [ ] Checkbox functions correctly
    • [ ] clicking checkbox changes state
    • [ ] clicking checkbox does NOT change state of other checkboxes (multi-select is possible)
  • [ ] Checkbox passes props correctly
    • [ ] id passes correctly
  • [ ] Checkbox is accessible
    • [ ] using spacebar changes state
    • [ ] checkbox is focus-able
    • [ ] 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