test(qa): assistant_shows_at_least_five_tools (was exactly five)

Assistant grew remember + recall tools this loop (7 total). The previous
exact-count assertion is now an at-least check so future tool additions
don't break QA.
This commit is contained in:
2026-06-14 15:02:53 +04:00
parent 0266c77875
commit 810d011b80
+1 -1
View File
@@ -61,7 +61,7 @@ await p.waitForTimeout(800);
await p.locator(".hub-chip", { hasText: /Command Assistant/ }).click(); await p.locator(".hub-chip", { hasText: /Command Assistant/ }).click();
await p.waitForTimeout(1200); await p.waitForTimeout(1200);
const toolNames = await p.locator(".agent-tool-name").allTextContents(); const toolNames = await p.locator(".agent-tool-name").allTextContents();
record("assistant_shows_five_tools", toolNames.length === 5, toolNames.join(", ")); record("assistant_shows_at_least_five_tools", toolNames.length >= 5, toolNames.join(", "));
const beforeCount = await p.locator(".agent-turn-agent .agent-turn-body").count(); const beforeCount = await p.locator(".agent-turn-agent .agent-turn-body").count();
await p.locator(".agent-composer textarea").fill("list processes"); await p.locator(".agent-composer textarea").fill("list processes");
await p.locator(".agent-composer button", { hasText: /Send/i }).click(); await p.locator(".agent-composer button", { hasText: /Send/i }).click();