Skip to content
Testing·Intermediate·Conceptual·1 min read

How do you test that a component is accessible without a full audit?

Short interview answer

Query everything by role and accessible name — if those queries work, the roles and names exist. Add automated rule checks, verify keyboard operation with user-event tab and keyboard, and confirm focus moves sensibly after actions like opening a dialog.

Key takeaway

Explain the underlying mental model clearly, then support it with a concrete example and its trade-offs.

← Back to Testing React components

Related questions