Files
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

20 lines
644 B
TypeScript

import { test, expect } from "@playwright/test";
test.describe("Chat Slots", () => {
test.beforeEach(async ({ page }) => {
await page.goto("/demos/chat-slots");
});
test("custom welcome screen slot renders", async ({ page }) => {
await expect(
page.locator('[data-testid="custom-welcome-screen"]'),
).toBeVisible();
await expect(page.getByText("Welcome to the Slots demo")).toBeVisible();
});
test("page shows suggestion pills", async ({ page }) => {
await expect(page.getByText("Write a sonnet").first()).toBeVisible();
await expect(page.getByText("Tell me a joke").first()).toBeVisible();
});
});