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
931 B
TypeScript
25 lines
931 B
TypeScript
import { test, expect } from "@playwright/test";
|
|
|
|
// E2E smoke for the chat-customization-css demo (AWS Strands showcase).
|
|
//
|
|
// This is intentionally a page-load smoke test. The Strands package reuses a
|
|
// single shared backend agent across every demo, so the per-demo coverage is
|
|
// behavioral (see the corresponding LangGraph-Python spec for the full
|
|
// interaction flow). This spec asserts the page mounts and the CopilotKit
|
|
// provider initializes without throwing.
|
|
|
|
test("chat-customization-css loads without errors", async ({ page }) => {
|
|
const errors: string[] = [];
|
|
page.on("pageerror", (err) => errors.push(err.message));
|
|
|
|
await page.goto("/demos/chat-customization-css");
|
|
|
|
// Wait for React to hydrate by waiting for the body to be attached.
|
|
await page.waitForLoadState("domcontentloaded");
|
|
|
|
expect(
|
|
errors,
|
|
`page errors on /demos/chat-customization-css: ${errors.join(" | ")}`,
|
|
).toEqual([]);
|
|
});
|