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

23 行
648 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.getByText("AstrBot Desktop", { exact: true }).first(),
).toBeVisible();
await expect(
page.getByRole("heading", { name: "统一聊天运行时" }),
).toBeVisible();
await expect(
page.getByText("IPC 暂不可用:", { exact: false }),
).toBeVisible();
await page.getByRole("button", { name: "◎ 连接 实例与槽位管理" }).click();
await expect(
page.getByRole("heading", { name: "连接 Profile" }),
).toBeVisible();
});