2403a39e1a
Signed-off-by: morgmart <98432065+morgmart@users.noreply.github.com> Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com> Co-authored-by: morgmart <98432065+morgmart@users.noreply.github.com>
28 lines
814 B
TypeScript
28 lines
814 B
TypeScript
import { expect, test } from "@playwright/test";
|
|
|
|
test.describe("Smoke tests", () => {
|
|
test("app loads and shows home screen", async ({ page }) => {
|
|
await page.goto("/");
|
|
|
|
// Wait for the app to render — greeting should appear
|
|
await expect(
|
|
page.getByText(/Good (morning|afternoon|evening)/),
|
|
).toBeVisible({ timeout: 10_000 });
|
|
});
|
|
|
|
test("home screen shows clock", async ({ page }) => {
|
|
await page.goto("/");
|
|
|
|
// Should show AM or PM once the clock renders
|
|
await expect(page.getByText(/[AP]M/)).toBeVisible({ timeout: 10_000 });
|
|
});
|
|
|
|
test("home screen shows chat input placeholder", async ({ page }) => {
|
|
await page.goto("/");
|
|
|
|
await expect(
|
|
page.getByPlaceholder(/Chat with .* or @ mention an agent/),
|
|
).toBeVisible({ timeout: 10_000 });
|
|
});
|
|
});
|