···321321 await tui.waitForText(name1, 10000);
322322 await tui.waitForText(name2, 10000);
323323324324- // Type part of name1 to filter
324324+ // Type part of name1 to filter — wait for name2 to disappear,
325325+ // which proves the filter rendered (not just that the input updated)
325326 const filterText = name1.slice(-4);
326327 tui.type(filterText);
327327- await tui.waitForText(filterText, 5000);
328328+ await tui.waitForAbsent(name2, 5000);
328329329330 let ss = tui.screenshot();
330331 expect(ss.text).toContain(name1);