How would you test a search field reused across several pages?
Answer
Define matching, tokenization, case, language, whitespace, special characters, empty input, limits, ranking, no-result state, pagination, permissions and performance. Separate shared component behaviour from page-specific scope and data.
Strong answer includes
- search semantics
- shared versus contextual behaviour
- permissions and performance
Practical example
Testing a shared search component reused on both the public catalog and the internal admin panel, a QA engineer found it correctly filtered by permissions on the admin side but leaked draft, unpublished items to anonymous users on the public page, because the component itself did no scope filtering.