Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

test(aui): capture tool progress in edit diff spec

Steven Enamakel256eca46eda0
diff --git a/app/test/playwright/specs/aui-tool-result-elements.spec.ts b/app/test/playwright/specs/aui-tool-result-elements.spec.ts
index 26d1acc7cc..55ac96f405 100644
--- a/app/test/playwright/specs/aui-tool-result-elements.spec.ts
+++ b/app/test/playwright/specs/aui-tool-result-elements.spec.ts
@@ -261,6 +261,7 @@ test.describe('assistant-ui tool-result elements', () => {
test('an edit renders its added and removed lines through the code-diff element', async ({
page,
}) => {
+ const progress = process.env.EPIC235_CAPTURE_TOOL_PROGRESS ? captureToolProgress(page) : null;
const threadId = await openChat(page);
const PROMPT = 'AUI-DIFF-CASE raise the retry count and the timeout';
const actionDir = process.env.OPENHUMAN_ACTION_DIR;
@@ -280,6 +281,16 @@ test.describe('assistant-ui tool-result elements', () => {
]);
await sendTurn(page, threadId, PROMPT);
+ if (progress) {
+ await waitForTurnCompletion(page, threadId);
+ console.log(
+ '[epic235 edit progress]',
+ JSON.stringify({
+ events: progress.events,
+ timeline: await captureToolTimeline(page, threadId),
+ })
+ );
+ }
const card = await openToolCall(page, /Edit|edit/);
const diff = card.getByTestId('tool-body-file-diff').first();