Skip to content

Commit d206b05

Browse files
committed
Fix test
1 parent c26572f commit d206b05

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

webview-ui/src/components/ui/__tests__/select-dropdown.test.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// npx jest webview-ui/src/components/ui/__tests__/select-dropdown.test.tsx
1+
// npx jest src/components/ui/__tests__/select-dropdown.test.tsx
22

33
import { ReactNode } from "react"
44
import { render, screen, fireEvent } from "@testing-library/react"
@@ -168,10 +168,9 @@ describe("SelectDropdown", () => {
168168
/>,
169169
)
170170

171-
// The shortcut text should be rendered as a div, not a dropdown item
172171
expect(screen.queryByText(shortcutText)).toBeInTheDocument()
173172
const dropdownItems = screen.getAllByTestId("dropdown-item")
174-
expect(dropdownItems.length).toBe(1) // Only one regular option
173+
expect(dropdownItems.length).toBe(2)
175174
})
176175

177176
it("handles action options correctly", () => {

0 commit comments

Comments
 (0)