feat: expand intelligent investigation workspace
Generic Container CI/CD / test-build-publish (push) Successful in 1m52s
Frontend CI/CD / build-test-publish-and-deploy (push) Successful in 1m52s

This commit is contained in:
2026-10-30 17:30:19 +08:00
parent ddd03dbff6
commit c0e4231b83
223 changed files with 13155 additions and 5304 deletions
+8
View File
@@ -23,7 +23,11 @@ test("nested Resizable groups keep chat, map and analysis independent across bre
await page.evaluate(() => Object.assign(window, { originalResizableMap: window.__waterNetworkMap }));
const outerBox = (await outer.boundingBox())!;
await page.mouse.move(0, 0);
await expect(outer.locator(".resizable-grip")).toHaveCSS("opacity", "0");
await expect(inner.locator(".resizable-grip")).toHaveCSS("opacity", "0");
await page.mouse.move(outerBox.x + outerBox.width / 2, outerBox.y + outerBox.height / 2);
await expect(outer.locator(".resizable-grip")).toHaveCSS("opacity", "1");
await page.mouse.down();
await page.mouse.move(620, outerBox.y + outerBox.height / 2, { steps: 6 });
await page.mouse.up();
@@ -31,13 +35,17 @@ test("nested Resizable groups keep chat, map and analysis independent across bre
const mapWidth = (await map.boundingBox())!.width;
const innerBox = (await inner.boundingBox())!;
await page.mouse.move(innerBox.x + innerBox.width / 2, innerBox.y + innerBox.height / 2);
await expect(outer.locator(".resizable-grip")).toHaveCSS("opacity", "0");
await expect(inner.locator(".resizable-grip")).toHaveCSS("opacity", "1");
await page.mouse.down();
await page.mouse.move(innerBox.x + 40, innerBox.y + innerBox.height / 2, { steps: 6 });
await page.mouse.up();
await expect.poll(async () => (await map.boundingBox())!.width).toBeGreaterThan(mapWidth + 30);
await expect.poll(async () => Math.round((await agent.boundingBox())!.width)).toBe(620);
await inner.focus();
await page.mouse.move(0, 0);
await page.keyboard.press("Home");
await expect(inner.locator(".resizable-grip")).toHaveCSS("opacity", "1");
await expect.poll(async () => Math.round((await map.boundingBox())!.width)).toBe(600);
await page.keyboard.press("End");
await expect.poll(async () => Math.round((await page.locator("#artifact-workspace").boundingBox())!.width)).toBe(600);