482f1962c1
Signed-off-by: Jack Amadeo <jackamadeo@squareup.com> Co-authored-by: block-open-source[bot] <201011344+block-open-source[bot]@users.noreply.github.com> Co-authored-by: block-open-source[bot] <1159699+block-open-source[bot]@users.noreply.github.com> Co-authored-by: Wes <wesbillman@users.noreply.github.com> Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Matt Toohey <contact@matttoohey.com> Co-authored-by: tulsi <tulsi@block.xyz> Co-authored-by: morgmart <98432065+morgmart@users.noreply.github.com> Co-authored-by: Bradley Axen <baxen@squareup.com> Co-authored-by: Alex Hancock <alexhancock@block.xyz> Co-authored-by: Taylor Ho <taylorkmho@gmail.com> Co-authored-by: Nahiyan Khan <nahiyan.khan@gmail.com> Co-authored-by: Lifei Zhou <lifei@squareup.com>
28 lines
813 B
TypeScript
28 lines
813 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 personas/),
|
|
).toBeVisible({ timeout: 10_000 });
|
|
});
|
|
});
|