feat: expand intelligent investigation workspace
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user