test(ui): explain the double updateComplete await in WorkspaceList scroll tests

This commit is contained in:
Federico Jaramillo Martinez
2026-07-27 15:41:32 +02:00
parent 76f292cfde
commit f2307b8c62
@@ -78,6 +78,8 @@ async function renderWorkspaceList(options: { workspaces: Workspace[]; selected?
} }
async function settled(list: WorkspaceList): Promise<void> { async function settled(list: WorkspaceList): Promise<void> {
// Mirror of SessionList's settled(): await two update cycles so any render
// scheduled from within updated() has completed before asserting.
await list.updateComplete; await list.updateComplete;
await list.updateComplete; await list.updateComplete;
} }