6fc44bf0ed
Signed-off-by: tulsi <tulsi@block.xyz>
30 lines
865 B
TypeScript
30 lines
865 B
TypeScript
import { expect, test } from "./fixtures/tauri-mock";
|
|
|
|
test.describe("Smoke tests", () => {
|
|
test("app loads and shows home screen", async ({ tauriMocked: 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 ({ tauriMocked: 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 ({
|
|
tauriMocked: page,
|
|
}) => {
|
|
await page.goto("/");
|
|
|
|
await expect(
|
|
page.getByPlaceholder(/Chat with .* or @ mention an agent/),
|
|
).toBeVisible({ timeout: 10_000 });
|
|
});
|
|
});
|