Skip to content

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

test(playwright): reformat tool result element spec

Steven Enamakel47c8b7898857
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 626caabd69..26d1acc7cc 100644
--- a/app/test/playwright/specs/aui-tool-result-elements.spec.ts
+++ b/app/test/playwright/specs/aui-tool-result-elements.spec.ts
@@ -175,14 +175,11 @@ async function captureToolTimeline(page: Page, threadId: string): Promise<unknow
};
}
).__OPENHUMAN_STORE__;
- return store?.getState?.().chatRuntime?.toolTimelineByThread?.[id]?.map(row => ({
- id: row.id,
- name: row.name,
- status: row.status,
- round: row.round,
- argsLength: row.argsBuffer?.length ?? 0,
- resultLength: row.result?.length ?? 0,
- }));
+ return store
+ ?.getState?.()
+ .chatRuntime?.toolTimelineByThread?.[
+ id
+ ]?.map(row => ({ id: row.id, name: row.name, status: row.status, round: row.round, argsLength: row.argsBuffer?.length ?? 0, resultLength: row.result?.length ?? 0 }));
}, threadId);
}
@@ -385,7 +382,10 @@ test.describe('assistant-ui tool-result elements', () => {
await waitForTurnCompletion(page, threadId);
console.log(
'[epic235 tool progress]',
- JSON.stringify({ events: progress.events, timeline: await captureToolTimeline(page, threadId) })
+ JSON.stringify({
+ events: progress.events,
+ timeline: await captureToolTimeline(page, threadId),
+ })
);
}
const card = await openToolCall(