Forráskód Böngészése

test(web): await streamed text before snapshot

imccyu 1 hónapja
szülő
commit
9ef0e28000
1 módosított fájl, 3 hozzáadás és 0 törlés
  1. 3 0
      apps/web/tests/live-interactions.e2e.ts

+ 3 - 0
apps/web/tests/live-interactions.e2e.ts

@@ -158,6 +158,9 @@ describe('web e2e: live-turn interactions (cancel / error / retry)', () => {
       () => 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: 30_000 })
     const loadingSnapshot = await captureStableAria(page, '[class*="centerCol"]', scaffold!.workspaceCwd)
     await compareOrRefreshGolden(LOADING_EXPECTED, loadingSnapshot, MODE)