Skip to content

Commit bd342b7

Browse files
committed
T1314667
1 parent a1d2916 commit bd342b7

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

e2e/testcafe-devextreme/tests/dataGrid/common/columnResizing.ts

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
});

0 commit comments

Comments
 (0)