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(); // The chat panel's own heading is gone; the slot tabs it portals into the // title bar are what proves the panel rendered and that the portal found its // mount point. await expect(page.getByRole("tab", { name: /陪伴/ })).toBeVisible(); await expect(page.getByRole("tab", { name: /运维/ })).toBeVisible(); await expect( page.getByText("IPC 暂不可用:", { exact: false }), ).toBeVisible(); await page.getByRole("button", { name: "◎ 连接 实例与槽位管理" }).click(); await expect( page.getByRole("heading", { name: "连接 Profile" }), ).toBeVisible(); });