AstrBot-Desktop/tests/e2e/bootstrap.spec.ts

17 行
476 B
TypeScript

import { expect, test } from "@playwright/test";
test("renders the bootstrap shell and safe browser fallback", async ({
page,
}) => {
await page.goto("/");
await expect(
page.getByRole("heading", { name: "AstrBot Desktop" }),
).toBeVisible();
await expect(page.getByText("desktop-v1alpha1")).toBeVisible();
await expect(
page.getByText("IPC unavailable:", { exact: false }),
).toBeVisible();
await expect(page.getByRole("button")).toBeEnabled();
});