feat: expand intelligent investigation workspace
This commit is contained in:
+9
-3
@@ -17,6 +17,12 @@ test("renders the migrated WebGIS workbench shell", async ({ page }) => {
|
||||
});
|
||||
|
||||
await page.goto("/");
|
||||
await expect(page).toHaveTitle("供水管网智慧运维系统");
|
||||
const faviconHref = await page.locator('link[rel="icon"]').getAttribute("href");
|
||||
expect(faviconHref).toBe("/favicon.svg");
|
||||
const favicon = await page.request.get(faviconHref!);
|
||||
expect(favicon.ok()).toBe(true);
|
||||
expect(favicon.headers()["content-type"]).toContain("image/svg+xml");
|
||||
await expect(page.getByText("供水管网智慧运维系统")).toBeVisible();
|
||||
await expect(page.getByText("运维工作台")).toBeVisible();
|
||||
await expect(page.getByLabel("Agent 折叠栏")).toBeVisible();
|
||||
@@ -92,9 +98,9 @@ test("preserves compact typography in header and agent controls", async ({ page
|
||||
const suggestion = page.locator("[aria-label=推荐问题] button").first();
|
||||
|
||||
await expect(headerControl).toHaveCSS("font-weight", "600");
|
||||
await expect(approvalControl).toHaveCSS("font-size", "12px");
|
||||
await expect(approvalControl).toHaveCSS("line-height", "16px");
|
||||
await expect(suggestion).toHaveCSS("font-size", "12px");
|
||||
await expect(approvalControl).toHaveCSS("font-size", "14px");
|
||||
await expect(approvalControl).toHaveCSS("line-height", "20px");
|
||||
await expect(suggestion).toHaveCSS("font-size", "14px");
|
||||
await expect(suggestion).toHaveCSS("font-weight", "400");
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user