DOM Matchers - Form Elements

Almost every frontend application contains forms, text inputs and dropdowns. They are an important part of our apps, and with React Testing Library you get matchers that make testing forms very simple.

Lesson covers:

toBeChecked, toBeInvalid, toBePartiallyChecked, toBeRequired, toBeValid, toHaveDisplayValue, toHaveFormValues, toHaveValue

Loading full lesson content & code...

Ready to try running tests for this lesson?