react-bare-forms
react-bare-forms copied to clipboard
TestingLibraryElementError: Found a label with the text of: Email, however no form control was found associated to that label
This is failing due to no for attribute on lables.
A Fix would be to reference the name of the text input:
React testing library Error:
TestingLibraryElementError: Found a label with the text of: Email, however no form control was found associated to that label
from https://www.w3schools.com/tags/tag_label.asp
<label for="male">Male</label>