mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
dd06dd89d1
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.
25 lines
708 B
TypeScript
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();
|
|
});
|
|
});
|