Преглед изворни кода

test(web): migrate the retry-exhaustion composer wait off the textarea locator

Master's #2844 asserted composer recovery through a textarea locator the
Lexical composer no longer renders; the merge carried it in silently and
the CI web-snapshot lane timed out waiting for it. Use the same
data-composer-input wait the file's other cases already migrated to.
Yichen Jiang пре 1 месец
родитељ
комит
df0fbbb091
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      apps/web/tests/live-interactions.e2e.ts

+ 1 - 1
apps/web/tests/live-interactions.e2e.ts

@@ -262,7 +262,7 @@ describe('web e2e: live-turn interactions (cancel / error / retry)', () => {
     await settled
     await settled
     expect(turnEndReasons(sessionEvents).at(-1)).toBe('error')
     expect(turnEndReasons(sessionEvents).at(-1)).toBe('error')
     expect(sessionEvents.filter(e => e.type === 'llm/retry').length).toBe(2)
     expect(sessionEvents.filter(e => e.type === 'llm/retry').length).toBe(2)
-    await expect.poll(() => page.locator('textarea').first().isEnabled(), { timeout: 10_000 }).toBe(true)
+    await expect.poll(() => page.locator('[data-composer-input]').first().isEnabled(), { timeout: 10_000 }).toBe(true)
     expect(await page.locator('[data-streaming="true"]').count()).toBe(0)
     expect(await page.locator('[data-streaming="true"]').count()).toBe(0)
     // The terminal error row must render even though the turn owns a retry
     // The terminal error row must render even though the turn owns a retry
     // chain: exhausted recovery shares the failing turn, so suppressing the
     // chain: exhausted recovery shares the failing turn, so suppressing the