Skip to content

Commit 42c73ca

Browse files
[Agent Builder] Fix tool call group test assertion for concatenated status text.
Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 8a2f21c commit 42c73ca

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • x-pack/platform/plugins/shared/agent_builder/public/application/components/conversations/conversation_rounds/round_events/steps

x-pack/platform/plugins/shared/agent_builder/public/application/components/conversations/conversation_rounds/round_events/steps/tool_call_group.test.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ describe('ToolCallGroup', () => {
7272
'tool: search',
7373
'tool: read',
7474
]);
75-
expect(childStatuses.every((el) => /(^|\s)ran(\s|$)/.test(el.textContent ?? ''))).toBe(true);
75+
// textContent concatenates badge + suffix without a space (e.g. "tool: searchran")
76+
expect(childStatuses.every((el) => /ran$/.test(el.textContent ?? ''))).toBe(true);
7677

7778
await user.click(screen.getAllByRole('button')[1]);
7879
expect(screen.getByRole('dialog')).toBeInTheDocument();

0 commit comments

Comments
 (0)