Skip to content

Commit c10c235

Browse files
committed
fix: update Camera icon to Image and fix alignment
- Changed Camera icon to Image icon from lucide-react - Fixed alignment issue by adjusting gap and removing extra margin - Updated tests to work with new Lucide icon structure
1 parent 03d36e6 commit c10c235

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

webview-ui/src/components/chat/__tests__/ChatTextArea.spec.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ vi.mock("@src/context/ExtensionStateContext")
3838
const getEnhancePromptButton = () => {
3939
return screen.getByRole("button", {
4040
name: (_, element) => {
41-
// Find the button with the sparkle icon
42-
return element.querySelector(".codicon-sparkle") !== null
41+
// Find the button with the wand sparkles icon (Lucide React)
42+
return element.querySelector(".lucide-wand-sparkles") !== null
4343
},
4444
})
4545
}
@@ -154,8 +154,9 @@ describe("ChatTextArea", () => {
154154
const enhanceButton = getEnhancePromptButton()
155155
fireEvent.click(enhanceButton)
156156

157-
const loadingSpinner = screen.getByText("", { selector: ".codicon-loading" })
158-
expect(loadingSpinner).toBeInTheDocument()
157+
// Check if the WandSparkles icon has the animate-spin class
158+
const animatingIcon = enhanceButton.querySelector(".animate-spin")
159+
expect(animatingIcon).toBeInTheDocument()
159160
})
160161
})
161162

0 commit comments

Comments
 (0)