Explorar el Código

test(web): await turn-tail stream publication

imccyu hace 4 semanas
padre
commit
4e4733c50b
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  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(),
       () => page.getByRole('status').filter({ hasText: 'Deep diving...' }).isVisible(),
       { timeout: 10_000 },
       { timeout: 10_000 },
     ).toBe(true)
     ).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
     // Only the user bubble owns a footer (clock + copy; user bubbles carry no
     // branch action): the narration is not the answer yet.
     // branch action): the narration is not the answer yet.
     const copyButtons = page.getByRole('button', { name: 'Copy' })
     const copyButtons = page.getByRole('button', { name: 'Copy' })