File tree Expand file tree Collapse file tree 1 file changed +52
-0
lines changed
e2e/testcafe-devextreme/tests/dataGrid/common Expand file tree Collapse file tree 1 file changed +52
-0
lines changed Original file line number Diff line number Diff line change @@ -67,3 +67,55 @@ test('column separator should starts from the parent', async (t) => {
6767 columns : [ 'GDP_Total' , 'Population_Urban' ] ,
6868 } , 'Area' ] ,
6969} ) ) ;
70+
71+ // T1314667
72+ test ( 'DataGrid – Resize indicator is moved when resizing a grouped column if showWhenGrouped is set to true' , async ( t ) => {
73+ const dataGrid = new DataGrid ( '#container' ) ;
74+
75+ await t . expect ( dataGrid . isReady ( ) ) . ok ( ) ;
76+
77+ await dataGrid . resizeHeader ( 3 , 30 , false ) ;
78+
79+ await t
80+ . expect ( dataGrid . getHeaders ( ) . getHeaderRow ( 1 ) . getHeaderCell ( 0 ) . element . clientWidth )
81+ . within ( 128 , 130 ) ;
82+ } ) . before ( async ( ) => {
83+ await createWidget ( 'dxDataGrid' , {
84+ dataSource : [ {
85+ ID : 1 ,
86+ Country : 'Brazil' ,
87+ Area : 8515767 ,
88+ Population_Urban : 0.85 ,
89+ Population_Rural : 0.15 ,
90+ Population_Total : 205809000 ,
91+ } ] ,
92+ keyExpr : 'ID' ,
93+ allowColumnResizing : true ,
94+ columnResizingMode : 'widget' ,
95+ width : 500 ,
96+ columns : [
97+ {
98+ dataField : 'ID' ,
99+ fixed : true ,
100+ allowReordering : false ,
101+ width : 50 ,
102+ } ,
103+
104+ {
105+ caption : 'Population' ,
106+ columns : [
107+ {
108+ dataField : 'Country' ,
109+ showWhenGrouped : true ,
110+ width : 100 ,
111+ groupIndex : 0 ,
112+ } ,
113+ { dataField : 'Area' } ,
114+ { dataField : 'Population_Total' } ,
115+ { dataField : 'Population_Urban' } ,
116+ { dataField : 'Population_Rural' } ,
117+ ] ,
118+ } ,
119+ ] ,
120+ } ) ;
121+ } ) ;
You can’t perform that action at this time.
0 commit comments