From e83dc59521cfaa82a284685b4daf0fa7379181ee Mon Sep 17 00:00:00 2001 From: murashit Date: Wed, 8 Jul 2026 11:05:56 +0900 Subject: [PATCH] Polish toolbar compact action label --- src/features/chat/ui/toolbar.tsx | 6 +----- tests/features/chat/ui/toolbar.test.ts | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/features/chat/ui/toolbar.tsx b/src/features/chat/ui/toolbar.tsx index b11c0673..c95cf987 100644 --- a/src/features/chat/ui/toolbar.tsx +++ b/src/features/chat/ui/toolbar.tsx @@ -169,11 +169,7 @@ function ChatActionsPanel({ model, actions }: { model: ToolbarViewModel; actions className="codex-panel__chat-actions-panel-item" disabled={model.newChatDisabled} /> - + ); diff --git a/tests/features/chat/ui/toolbar.test.ts b/tests/features/chat/ui/toolbar.test.ts index 454f00e5..15fbd1fb 100644 --- a/tests/features/chat/ui/toolbar.test.ts +++ b/tests/features/chat/ui/toolbar.test.ts @@ -86,7 +86,7 @@ describe("Toolbar decisions", () => { const items = [...parent.querySelectorAll(".codex-panel__chat-actions-panel-item")]; expect(parent.querySelector(".codex-panel__chat-actions-panel-items")?.tagName).toBe("DIV"); expect(parent.querySelector(".codex-panel__chat-actions-panel-items")?.getAttribute("aria-label")).toBeNull(); - expect(items.map((item) => item.textContent)).toEqual(["Start new chat", "Compact conversation", "Set goal..."]); + expect(items).toHaveLength(3); expect(items.map((item) => item.tagName)).toEqual(["DIV", "DIV", "DIV"]); expect(items.map((item) => item.getAttribute("role"))).toEqual([null, null, null]); items[0]?.click();