test(web): await turn-tail stream publication

This commit is contained in:
imccyu 2026-09-01 22:55:17 +08:00
parent e427d5746e
commit 4e4733c50b

View file

@ -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' })