mirror of
https://github.com/block/goose.git
synced 2026-04-28 03:29:36 +00:00
27 lines
811 B
TypeScript
27 lines
811 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(/Message .*, @ to mention agents/),
|
|
).toBeVisible({ timeout: 10_000 });
|
|
});
|
|
});
|