From f2307b8c622acc28b594938f54e7285332b6adb2 Mon Sep 17 00:00:00 2001 From: Federico Jaramillo Martinez Date: Mon, 27 Jul 2026 15:41:32 +0200 Subject: [PATCH] test(ui): explain the double updateComplete await in WorkspaceList scroll tests --- src/client/src/components/WorkspaceList.scroll.test.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/client/src/components/WorkspaceList.scroll.test.ts b/src/client/src/components/WorkspaceList.scroll.test.ts index 3f5b0be..290407e 100644 --- a/src/client/src/components/WorkspaceList.scroll.test.ts +++ b/src/client/src/components/WorkspaceList.scroll.test.ts @@ -78,6 +78,8 @@ async function renderWorkspaceList(options: { workspaces: Workspace[]; selected? } async function settled(list: WorkspaceList): Promise { + // 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; }