From 4e4733c50bc2462e7cd4f076dd0adcbe1859474a Mon Sep 17 00:00:00 2001 From: imccyu <276526105+imccyu@users.noreply.github.com> Date: Tue, 1 Sep 2026 22:55:17 +0800 Subject: [PATCH] test(web): await turn-tail stream publication --- apps/web/tests/turn-tail-actions.e2e.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/web/tests/turn-tail-actions.e2e.ts b/apps/web/tests/turn-tail-actions.e2e.ts index 5b5520f93d..d51d6c2528 100644 --- a/apps/web/tests/turn-tail-actions.e2e.ts +++ b/apps/web/tests/turn-tail-actions.e2e.ts @@ -139,6 +139,9 @@ describe('web e2e: assistant IconActions wait for the turn to end', () => { () => page.getByRole('status').filter({ hasText: 'Deep diving...' }).isVisible(), { timeout: 10_000 }, ).toBe(true) + await page.locator('[data-streaming="true"]') + .getByText('partial', { exact: true }) + .waitFor({ timeout: 10_000 }) // Only the user bubble owns a footer (clock + copy; user bubbles carry no // branch action): the narration is not the answer yet. const copyButtons = page.getByRole('button', { name: 'Copy' })