فهرست منبع

test(web): wait on the request marker button, not the hairline row

The boundary marker row is a 0-height hairline except at the table tail;
the marker button is absolutely positioned and visible anywhere, so the
terminal-marker e2e waits on the button. Also refresh the
cordis-inspect-jsdoc fixture to the typed error reason (LlmFailure).
_Kerman 2 ماه پیش
والد
کامیت
fa79008c75
2فایلهای تغییر یافته به همراه4 افزوده شده و 1 حذف شده
  1. 4 1
      apps/web/tests/live-interactions.e2e.ts
  2. 0 0
      examples/acp-agent/tests/snapshots/cordis-inspect-jsdoc/session.jsonl

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

@@ -192,9 +192,12 @@ describe('web e2e: live-turn interactions (cancel / error / retry)', () => {
     const { settled } = await sendPrompt()
     const { settled } = await sendPrompt()
     await settled
     await settled
     await page.getByRole('tab', { name: 'Trajectory' }).click()
     await page.getByRole('tab', { name: 'Trajectory' }).click()
+    // The boundary marker row itself is a 0-height hairline except at the
+    // table tail; the marker button is absolutely positioned and stays
+    // visible, so wait on it directly.
     const tailRequest = page.locator('tr[data-request-only="true"]').last()
     const tailRequest = page.locator('tr[data-request-only="true"]').last()
-    await tailRequest.waitFor({ timeout: 10_000 })
     const requestMarker = tailRequest.getByRole('button', { name: /Request #/ })
     const requestMarker = tailRequest.getByRole('button', { name: /Request #/ })
+    await requestMarker.waitFor({ timeout: 10_000 })
 
 
     const markerWithinTable = await requestMarker.evaluate((element) => {
     const markerWithinTable = await requestMarker.evaluate((element) => {
       const marker = element.getBoundingClientRect()
       const marker = element.getBoundingClientRect()

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 0 - 0
examples/acp-agent/tests/snapshots/cordis-inspect-jsdoc/session.jsonl


برخی فایل ها در این مقایسه diff نمایش داده نمی شوند زیرا تعداد فایل ها بسیار زیاد است