We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98017d0 commit fbd76bcCopy full SHA for fbd76bc
webview-ui/src/components/chat/__tests__/TaskHeader.test.tsx
@@ -106,8 +106,10 @@ describe("TaskHeader", () => {
106
})
107
108
it("should disable the condense context button when buttonsDisabled is true", () => {
109
- renderTaskHeader({ buttonsDisabled: true })
+ const handleCondenseContext = jest.fn()
110
+ renderTaskHeader({ buttonsDisabled: true, handleCondenseContext })
111
const condenseButton = screen.getByTitle("chat:task.condenseContext")
- expect(condenseButton).toBeDisabled()
112
+ fireEvent.click(condenseButton)
113
+ expect(handleCondenseContext).not.toHaveBeenCalled()
114
115
0 commit comments