feat: expand intelligent investigation workspace
This commit is contained in:
@@ -1,4 +1,9 @@
|
||||
import { expect, test } from "@playwright/test";
|
||||
import { mockInvestigationPresentation } from "./support/mock-investigation-presentation";
|
||||
|
||||
test.beforeEach(async ({ page }) => {
|
||||
await mockInvestigationPresentation(page, []);
|
||||
});
|
||||
|
||||
test("Dev Panel opens as a floating desktop panel and closes with Escape", async ({ page }) => {
|
||||
test.setTimeout(60_000);
|
||||
@@ -14,6 +19,7 @@ test("Dev Panel opens as a floating desktop panel and closes with Escape", async
|
||||
|
||||
const panel = page.getByTestId("map-dev-panel");
|
||||
await expect(panel).toBeVisible();
|
||||
await panel.getByRole("tab", { name: "地图调试", exact: true }).click();
|
||||
await expect(panel).toHaveCSS("width", "400px");
|
||||
await expect(panel).toHaveCSS("border-radius", "16px");
|
||||
const panelBox = await panel.boundingBox();
|
||||
@@ -62,6 +68,7 @@ test("labels remain active per business group and clear globally", async ({ page
|
||||
await page.getByRole("button", { name: "切换地图 Dev Panel" }).click();
|
||||
|
||||
const panel = page.getByTestId("map-dev-panel");
|
||||
await panel.getByRole("tab", { name: "地图调试", exact: true }).click();
|
||||
await panel.locator("summary").filter({ hasText: "数值标注" }).click();
|
||||
const apply = panel.getByRole("button", { name: "应用标注", exact: true });
|
||||
await apply.click();
|
||||
|
||||
Reference in New Issue
Block a user