React Testing Library DOM Matchers Course
Course covering all DOM matchers in React Testing Library, including `.toHaveAttribute()`, `.toBeChecked()` - learn them all to make your tests cleaner and easier to write
Course Lessons
7 lessons to learn everything about React Testing Library DOM Matchers
DOM Matchers
DOM Matchers Introduction
Introduction to the course, showing what you will learn
DOM Matchers - Structure
Learn how to use Jest DOM matchers to assert on DOM structure, including checking for empty elements, child elements, HTML content, and text content
DOM Matchers - Styling and Attributes
Jest DOM matchers for testing element attributes, CSS classes, and inline styles in your React components
DOM Matchers - Element State & Visibility
Test element states and visibility using Jest DOM matchers, including disabled/enabled states, visibility, focus, and button press states
DOM Matchers - Form Elements
Comprehensive guide to testing form elements with Jest DOM matchers, including validation states, values, checkboxes, and form data
DOM Matchers - Accessibility
Ensure your components are accessible by testing with Jest DOM accessibility matchers for ARIA attributes, roles, and error messages
Deprecated DOM Matchers
Quick lesson on some deprecated DOM matchers that you may still see in code bases