Files
copilotkit__copilotkit/showcase/integrations/agno/tests/e2e/tool-rendering-custom-catchall.spec.ts
Jordan Ritter dd06dd89d1 refactor(showcase): rename packages/ to integrations/
The showcase framework directories better reflect their role as
integration examples rather than distributable packages.
Renames showcase/packages/ -> showcase/integrations/ and updates
the test docker-compose file reference accordingly.
2026-04-28 07:47:35 -07:00

25 lines
708 B
TypeScript

import { test, expect } from "@playwright/test";
test.describe("Tool Rendering (Custom Catch-all)", () => {
test.beforeEach(async ({ page }) => {
await page.goto("/demos/tool-rendering-custom-catchall");
});
test("clicking a suggestion renders the branded catch-all card", async ({
page,
}) => {
await page
.locator('[data-testid="copilot-suggestion"]')
.filter({ hasText: "Weather in SF" })
.first()
.click();
const card = page.locator('[data-testid="custom-catchall-card"]').first();
await expect(card).toBeVisible({ timeout: 45000 });
await expect(
card.locator('[data-testid="custom-catchall-tool-name"]'),
).toBeVisible();
});
});