Testing · Junior · Question 77 of 78
Which test is the right place to check that a form shows “Required” when submitted empty?
- ✓Correct answer: A component/integration test with Testing Library
- 2An E2E test only
- 3A snapshot test of the form
Explanation
Validation is a UI behaviour that doesn't need a real backend: a fast RTL test covers it well.