@@ -218,3 +218,51 @@ test('DropDownButton should be hidden during resizing', async (t) => {
218218 { dataField : 'value' , caption : 'Value' } ,
219219 ] ,
220220} ) ) ;
221+
222+ test ( 'AIPromptEditor should be hidden during resizing' , async ( t ) => {
223+ // arrange
224+ const dataGrid = new DataGrid ( DATA_GRID_SELECTOR ) ;
225+ const aiDropDownButton = dataGrid
226+ . getHeaders ( )
227+ . getHeaderRow ( 0 )
228+ . getCommandCell ( 0 )
229+ . getAIDropDownButton ( ) ;
230+ const aiPromptEditor = dataGrid . getAIPromptEditor ( ) ;
231+
232+ await t . expect ( dataGrid . isReady ( ) ) . ok ( ) ;
233+
234+ // act
235+ await t . click ( aiDropDownButton . element ) ;
236+
237+ // assert
238+ await t . expect ( await aiDropDownButton . isOpened ( ) ) . ok ( ) ;
239+
240+ // act
241+ await t . click ( ( await aiDropDownButton . getList ( ) ) . getItem ( 0 ) . element ) ;
242+
243+ // assert
244+ await t . expect ( aiPromptEditor . isVisible ( ) ) . ok ( ) ;
245+
246+ // act
247+ await dataGrid . resizeHeader ( 1 , 50 ) ;
248+
249+ // assert
250+ await t . expect ( aiPromptEditor . isVisible ( ) ) . notOk ( ) ;
251+ } ) . before ( async ( ) => createWidget ( 'dxDataGrid' , {
252+ dataSource : [
253+ { id : 1 , name : 'Name 1' , value : 10 } ,
254+ { id : 2 , name : 'Name 2' , value : 20 } ,
255+ { id : 3 , name : 'Name 3' , value : 30 } ,
256+ ] ,
257+ allowColumnResizing : true ,
258+ columnWidth : 450 ,
259+ columns : [
260+ {
261+ type : 'ai' ,
262+ caption : 'AI Column' ,
263+ name : 'myAIColumn' ,
264+ alignment : 'right' ,
265+ } ,
266+ { dataField : 'id' , caption : 'ID' } ,
267+ ] ,
268+ } ) ) ;
0 commit comments