From 131ef21a253367db5e092fd6a392398e4b6eae93 Mon Sep 17 00:00:00 2001 From: Codex Date: Mon, 28 Sep 2026 20:06:50 +0000 Subject: [PATCH] test(desktop): await channel head before scroll summary check Signed-off-by: Codex Co-authored-by: Codex --- desktop/tests/e2e/scroll-history.spec.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/desktop/tests/e2e/scroll-history.spec.ts b/desktop/tests/e2e/scroll-history.spec.ts index 27bf08b731..5282c4c977 100644 --- a/desktop/tests/e2e/scroll-history.spec.ts +++ b/desktop/tests/e2e/scroll-history.spec.ts @@ -2172,6 +2172,11 @@ test("thread summary badge survives a retained older-history prepend", async ({ await page.getByTestId("channel-deep-history").click(); await expect(page.getByTestId("chat-title")).toHaveText("deep-history"); + await waitForMockChannelHeadReady( + page, + "deep-history", + "feedf00d-0000-4000-8000-000000000007", + ); const timeline = page.getByTestId("message-timeline"); const badgeSelector = '[data-testid="message-thread-summary"][data-thread-head-id="mock-deep-history-599"]';