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("heading", { name: "连接 Profile" }), ).toBeVisible(); await expect( page.getByText("Profile storage unavailable:", { exact: false }), ).toBeVisible(); await expect( page.getByRole("button", { name: "重新检查 IPC" }), ).toBeEnabled(); });