The company directory's search only matches exact capitalisation, the department filter wipes the search, nothing tells you when no one matches, errors leave a blank page and one contractor's display name injects HTML. Make search, filters, empty and error states work, safely.
This is the practice version. Assessments always use a variant you have never seen.
People keep messaging HR to ask for colleagues' extensions because the directory search 'never finds anyone'. The directory (public/) calls GET /api/people?q=&dept= (server/routes.js). Run
node server.js and open the preview.
/?q=lin&dept=Engineering opens with both controls filled and the matching
results.#count reads "N people" (or "1 person"); when nothing matches, show #empty.#error (role="alert") and a #retry button.Keep the element ids. Public tests: node --test test/.