Skip to content

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

test(aui-tool-result-elements): match stable action identity instead of hit count

Steven Enamakela9aebdb37289
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 4733a69f58..cc6e65e1f5 100644
--- a/app/test/playwright/specs/aui-tool-result-elements.spec.ts
+++ b/app/test/playwright/specs/aui-tool-result-elements.spec.ts
@@ -282,7 +282,11 @@ test.describe('assistant-ui tool-result elements', () => {
toolCalls: [{ name: 'tool_search', arguments: { query: 'list GitHub repositories' } }],
},
{
- keyword: '1 match(es)',
+ // Match the result's stable action identity, not a hit count. The
+ // query can legitimately return multiple nearby GitHub actions, and
+ // the count is a ranking detail rather than the action we intend to
+ // exercise.
+ keyword: GITHUB_REPOSITORY_ACTION,
toolCalls: [{ name: GITHUB_REPOSITORY_ACTION, arguments: { limit: 2 } }],
},
]);