Skip to content

Commit 123f452

Browse files
DataGrid: unskip demo tests (#32355)
1 parent 9a53873 commit 123f452

File tree

50 files changed

+27
-189
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+27
-189
lines changed

apps/demos/Demos/DataGrid/SignalRService/jQuery/index.js

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,10 @@ $(() => {
4444
dataType: 'number',
4545
format: '#0.####',
4646
cellTemplate(container, options) {
47-
container.addClass((options.data.change > 0) ? 'inc' : 'dec');
48-
container.html(options.text);
47+
const wrapper = $('<div>')
48+
.addClass((options.data.change > 0) ? 'inc' : 'dec')
49+
.text(options.text);
50+
wrapper.appendTo(container);
4951
},
5052
}, {
5153
dataField: 'change',
@@ -54,21 +56,24 @@ $(() => {
5456
format: '#0.####',
5557
cellTemplate(container, options) {
5658
const fieldData = options.data;
57-
container.addClass(fieldData.change > 0 ? 'inc' : 'dec');
59+
const wrapper = $('<div>')
60+
.addClass(fieldData.change > 0 ? 'inc' : 'dec');
5861

5962
$('<span>')
6063
.addClass('current-value')
6164
.text(options.text)
62-
.appendTo(container);
65+
.appendTo(wrapper);
6366

6467
$('<span>')
6568
.addClass('arrow')
66-
.appendTo(container);
69+
.appendTo(wrapper);
6770

6871
$('<span>')
6972
.addClass('diff')
7073
.text(`${fieldData.percentChange.toFixed(2)}%`)
71-
.appendTo(container);
74+
.appendTo(wrapper);
75+
76+
wrapper.appendTo(container);
7277
},
7378
}, {
7479
dataField: 'dayOpen',
2.68 KB

apps/demos/testing/skipped-tests.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ export const skippedTests = {
2222
Charts: ['ServerSideDataProcessing'],
2323
Common: ['PopupAndNotificationsOverview'],
2424
DataGrid: [
25-
'SignalRService',
2625
'MultipleRecordSelectionModes',
2726
'RemoteCRUDOperations',
2827
'ExcelJSExportMultipleGrids',
@@ -45,7 +44,6 @@ export const skippedTests = {
4544
DataGrid: [
4645
'Overview',
4746
'Toolbar',
48-
'SignalRService',
4947
'MultipleRecordSelectionModes',
5048
'ExcelJSExportMultipleGrids',
5149
'PDFExportMultipleGrids',
@@ -66,7 +64,6 @@ export const skippedTests = {
6664
Common: ['PopupAndNotificationsOverview'],
6765
Charts: ['PointsAggregation', 'ServerSideDataProcessing'],
6866
DataGrid: [
69-
'SignalRService',
7067
'MultipleRecordSelectionModes',
7168
'ExcelJSExportMultipleGrids',
7269
'PDFExportMultipleGrids',

apps/demos/testing/widgets/datagrid/BatchUpdateRequest.test.ts

Lines changed: 0 additions & 50 deletions
This file was deleted.

apps/demos/testing/widgets/datagrid/EditStateManagement.test.ts

Lines changed: 0 additions & 116 deletions
This file was deleted.

apps/demos/testing/widgets/datagrid/RemoteGrouping.test.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,16 @@ runManualTest('DataGrid', 'RemoteGrouping', (test) => {
1717
const { takeScreenshot, compareResults } = createScreenshotsComparer(t);
1818

1919
await $('.dx-scrollable-container')();
20+
21+
await testScreenshot(t, takeScreenshot, 'datagrid_remote_grouping_initial.png');
22+
2023
await scroll(5000);
2124

22-
await testScreenshot(t, takeScreenshot, 'datagrid_remote_grouping_2_desktop.png');
25+
await testScreenshot(t, takeScreenshot, 'datagrid_remote_grouping_scrolled.png');
2326

24-
await t
25-
.click($('.dx-group-row td').withText('Madrid Store').prevSibling());
27+
await t.click($('.dx-group-row').nth(2).child('.dx-datagrid-expand'));
2628

27-
await testScreenshot(t, takeScreenshot, 'datagrid_remote_grouping_3_desktop.png');
29+
await testScreenshot(t, takeScreenshot, 'datagrid_remote_grouping_expanded.png');
2830

2931
await t
3032
.expect(compareResults.isValid())

0 commit comments

Comments
 (0)