jargon

Frontend & browser·Testing a user interface

you rendered the component, clicked the button as a user would, and asserted on what appeared.

Component test

Also calledcomponent integration test

A test that renders a component with its real children and asserts on the rendered output and behaviour rather than on internals. It is the highest-value shape in frontend testing, because it catches the wiring mistakes that unit tests structurally cannot while still running fast. It stays useful across refactors only if it queries by role and text, the way a user finds things.

Commonly confused with