Files
2026-04-08 21:22:35 -07:00

26 lines
766 B
TypeScript

import { test, expect } from "@playwright/test";
test.describe("Human in the Loop", () => {
test("page loads and chat renders", async ({ page }) => {
await page.goto("/demos/hitl");
// Chat interface should be visible
await expect(page.getByPlaceholder("Type a message")).toBeVisible();
});
test("can send a message and receive a response", async ({ page }) => {
await page.goto("/demos/hitl");
const input = page.getByPlaceholder("Type a message");
await input.fill("Hello");
await input.press("Enter");
// Wait for agent response (adjust timeout as needed)
await expect(page.locator('[data-role="assistant"]').first()).toBeVisible({
timeout: 30000,
});
});
// TODO: Add feature-specific assertions
});