Introduction
Component testing checks small parts of a user interface by themselves. This helps find problems early and makes fixing easier.
When you want to test a button works correctly without loading the whole page.
When you need to check if a form input validates user data properly alone.
When you want to make sure a dropdown menu shows the right options by itself.
When you want to test how a UI part looks and behaves before adding it to the full app.