fix: remove history item click outline
This commit is contained in:
@@ -134,6 +134,23 @@ test("desktop Agent header expands into one attached acrylic history surface", a
|
||||
.poll(() => getSurfacePresentation(historyButton))
|
||||
.toEqual(historyButtonPresentationBefore);
|
||||
|
||||
const sessionTrigger = history.locator(".agent-history-session-trigger").first();
|
||||
const sessionTriggerBox = await sessionTrigger.boundingBox();
|
||||
const historyHeadingBox = await history.getByText("历史记录", { exact: true }).boundingBox();
|
||||
expect(sessionTriggerBox).not.toBeNull();
|
||||
expect(historyHeadingBox).not.toBeNull();
|
||||
await page.mouse.move(
|
||||
sessionTriggerBox!.x + sessionTriggerBox!.width / 2,
|
||||
sessionTriggerBox!.y + sessionTriggerBox!.height / 2
|
||||
);
|
||||
await page.mouse.down();
|
||||
await expect(sessionTrigger).toHaveCSS("outline-style", "none");
|
||||
await page.mouse.move(
|
||||
historyHeadingBox!.x + historyHeadingBox!.width / 2,
|
||||
historyHeadingBox!.y + historyHeadingBox!.height / 2
|
||||
);
|
||||
await page.mouse.up();
|
||||
|
||||
const headerBox = await agentHeader.boundingBox();
|
||||
const agentPanelBox = await agentPanel.boundingBox();
|
||||
const historyBox = await history.boundingBox();
|
||||
|
||||
Reference in New Issue
Block a user