feat: expand intelligent investigation workspace
This commit is contained in:
@@ -51,6 +51,8 @@ test("Agent separates conversation navigation, context and composer from the map
|
||||
await expect(context.getByRole("button")).toHaveCount(0);
|
||||
await expect(form).toHaveCount(1);
|
||||
await expect(form).toHaveCSS("background-color", "rgb(255, 255, 255)");
|
||||
const restingBorder = await form.evaluate((element) => getComputedStyle(element).borderColor);
|
||||
const restingShadow = await form.evaluate((element) => getComputedStyle(element).boxShadow);
|
||||
const panelBox = (await panel.boundingBox())!;
|
||||
const headerBox = (await header.boundingBox())!;
|
||||
const divider = panel.locator("[data-agent-header-divider]");
|
||||
@@ -58,7 +60,8 @@ test("Agent separates conversation navigation, context and composer from the map
|
||||
expect(panelBox.x).toBe(0);
|
||||
expect(contextBox.y).toBeGreaterThanOrEqual(headerBox.y + headerBox.height);
|
||||
await form.locator("textarea").focus();
|
||||
await expectThemeColor(form, "border-color", "--action-blue");
|
||||
await expect(form).toHaveCSS("border-color", restingBorder);
|
||||
await expect(form).not.toHaveCSS("box-shadow", restingShadow);
|
||||
await header.getByRole("button", { name: "选择主题" }).click();
|
||||
await expect(page.getByRole("menuitem", { name: "新建主题", exact: true })).toBeVisible();
|
||||
await expect(page.getByRole("menuitem", { name: "新建项目", exact: true })).toHaveCount(0);
|
||||
|
||||
Reference in New Issue
Block a user