@@ -53,7 +53,7 @@ describe("ChatTextArea", () => {
5353 filePaths : [ ] ,
5454 } )
5555
56- render ( < ChatTextArea { ...defaultProps } textAreaDisabled = { true } /> )
56+ render ( < ChatTextArea isNewTask = { false } { ...defaultProps } textAreaDisabled = { true } /> )
5757 const enhanceButton = screen . getByRole ( "button" , { name : / e n h a n c e p r o m p t / i } )
5858 expect ( enhanceButton ) . toHaveClass ( "disabled" )
5959 } )
@@ -71,7 +71,7 @@ describe("ChatTextArea", () => {
7171 apiConfiguration,
7272 } )
7373
74- render ( < ChatTextArea { ...defaultProps } inputValue = "Test prompt" /> )
74+ render ( < ChatTextArea isNewTask = { false } { ...defaultProps } inputValue = "Test prompt" /> )
7575
7676 const enhanceButton = screen . getByRole ( "button" , { name : / e n h a n c e p r o m p t / i } )
7777 fireEvent . click ( enhanceButton )
@@ -90,7 +90,7 @@ describe("ChatTextArea", () => {
9090 } ,
9191 } )
9292
93- render ( < ChatTextArea { ...defaultProps } inputValue = "" /> )
93+ render ( < ChatTextArea isNewTask = { false } { ...defaultProps } inputValue = "" /> )
9494
9595 const enhanceButton = screen . getByRole ( "button" , { name : / e n h a n c e p r o m p t / i } )
9696 fireEvent . click ( enhanceButton )
@@ -106,7 +106,7 @@ describe("ChatTextArea", () => {
106106 } ,
107107 } )
108108
109- render ( < ChatTextArea { ...defaultProps } inputValue = "Test prompt" /> )
109+ render ( < ChatTextArea isNewTask = { false } { ...defaultProps } inputValue = "Test prompt" /> )
110110
111111 const enhanceButton = screen . getByRole ( "button" , { name : / e n h a n c e p r o m p t / i } )
112112 fireEvent . click ( enhanceButton )
@@ -118,7 +118,7 @@ describe("ChatTextArea", () => {
118118
119119 describe ( "effect dependencies" , ( ) => {
120120 it ( "should update when apiConfiguration changes" , ( ) => {
121- const { rerender } = render ( < ChatTextArea { ...defaultProps } /> )
121+ const { rerender } = render ( < ChatTextArea isNewTask = { false } { ...defaultProps } /> )
122122
123123 // Update apiConfiguration
124124 ; ( useExtensionState as jest . Mock ) . mockReturnValue ( {
@@ -129,7 +129,7 @@ describe("ChatTextArea", () => {
129129 } ,
130130 } )
131131
132- rerender ( < ChatTextArea { ...defaultProps } /> )
132+ rerender ( < ChatTextArea isNewTask = { false } { ...defaultProps } /> )
133133
134134 // Verify the enhance button appears after apiConfiguration changes
135135 expect ( screen . getByRole ( "button" , { name : / e n h a n c e p r o m p t / i } ) ) . toBeInTheDocument ( )
@@ -140,7 +140,7 @@ describe("ChatTextArea", () => {
140140 it ( "should update input value when receiving enhanced prompt" , ( ) => {
141141 const setInputValue = jest . fn ( )
142142
143- render ( < ChatTextArea { ...defaultProps } setInputValue = { setInputValue } /> )
143+ render ( < ChatTextArea isNewTask = { false } { ...defaultProps } setInputValue = { setInputValue } /> )
144144
145145 // Simulate receiving enhanced prompt message
146146 window . dispatchEvent (
0 commit comments