Skip to content

Commit 4ac6868

Browse files
committed
test(ui): wait for tool projection before held touch
1 parent ad59723 commit 4ac6868

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎ui/src/e2e/chat-flow.streaming.e2e.test.ts‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,9 @@ suite.define(() => {
127127
stream: "tool",
128128
ts: Date.now(),
129129
});
130+
// The working indicator predates the tool event; wait for its deferred projection
131+
// before scrolling a bubble that the stream-to-tool render may replace.
132+
await page.locator('[data-message-id^="tool:assistant:footer-read"]').waitFor();
130133
await page.locator(".chat-working-indicator").waitFor({ state: "visible" });
131134
const heldTouch = mobile ? await context.newCDPSession(page) : null;
132135
if (heldTouch) {

0 commit comments

Comments
 (0)