浏览代码

test(web): await turn-tail stream publication

imccyu 3 周之前
父节点
当前提交
4e4733c50b
共有 1 个文件被更改,包括 3 次插入 和 0 次删除
  1. 3 0
      apps/web/tests/turn-tail-actions.e2e.ts

+ 3 - 0
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' })