Type into the box and every character fires a new request to /api/lab/search. The server delay is inversely proportional to the query length, so an early short query can resolve after a later long one and clobber the list.
A naive test that just waits a fixed time then reads the results will sometimes see stale data. Your job is to assert that the displayed results actually match the final query.