Skip to content

Latest commit

 

History

History
32 lines (21 loc) · 1.43 KB

File metadata and controls

32 lines (21 loc) · 1.43 KB

Test of a simple checkbox

Author: Thomas Laforge

Information

This is the perfect example to get started with Testing Library.

You will need to only check if the button gets enabled when clicking on the checkbox

You can look into debug function to get full power of Testing Library like:

  • logRoles(...);
  • screen.debug(); // you can pass a element as input
  • screen.logTestingPlaygroundURL(); // you can pass a element as input

Submitting your work

  1. Fork the project
  2. clone it
  3. npm ci
  4. npx nx serve testing-checkbox
  5. ...work on it
  6. Commit your work
  7. Submit a PR with a title beginning with Answer:28 that I will review and other dev can review.

testing-checkbox testing-checkbox solution author

You can ask any question on twitter