Skip to content

Commit 535367c

Browse files
wdevfxalexslavr
authored andcommitted
tests(Testcafe_devextreme): fix and skip unstable tests
1 parent 6f1872a commit 535367c

File tree

15 files changed

+56
-38
lines changed

15 files changed

+56
-38
lines changed

e2e/testcafe-devextreme/tests/accessibility/map.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ import url from '../../helpers/getPageUrl';
33
import { testAccessibility, Configuration } from '../../helpers/accessibility/test';
44
import { Options } from '../../helpers/generateOptionMatrix';
55

6-
fixture.disablePageReloads`Accessibility`
6+
// TODO Chrome133: skipped during chrome update
7+
fixture.disablePageReloads.skip`Accessibility`
78
.page(url(__dirname, '../container.html'));
89

910
const markersData = [

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

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,8 @@ test('Async Validation(Cell) - Data is not saved when a dependant cell value bec
603603
}, 'lastName'],
604604
})));
605605

606-
test('Cell mode(setCellValue) with async validation - The value of an invalid dependent cell should be updated in a new row(T872751)', async (t) => {
606+
// TODO Chrome133: skipped during chrome update
607+
test.skip('Cell mode(setCellValue) with async validation - The value of an invalid dependent cell should be updated in a new row(T872751)', async (t) => {
607608
const dataGrid = new DataGrid('#container');
608609

609610
await dataGrid.apiAddRow();
@@ -642,7 +643,8 @@ test('Cell mode(setCellValue) with async validation - The value of an invalid de
642643
}, 'lastName'],
643644
})));
644645

645-
test('Cell mode(setCellValue) with async validation - The value of an invalid dependent cell should be updated in a modified row(T872751)', async (t) => {
646+
// TODO Chrome133: skipped during chrome update
647+
test.skip('Cell mode(setCellValue) with async validation - The value of an invalid dependent cell should be updated in a modified row(T872751)', async (t) => {
646648
const dataGrid = new DataGrid('#container');
647649

648650
await dataGrid.apiEditCell(0, 0);
@@ -681,7 +683,8 @@ test('Cell mode(setCellValue) with async validation - The value of an invalid de
681683
}, 'lastName'],
682684
})));
683685

684-
test('Cell mode(calculateCellValue) with async validation - The value of an invalid dependent cell should be updated in a new row(T872751)', async (t) => {
686+
// TODO Chrome133: skipped during chrome update
687+
test.skip('Cell mode(calculateCellValue) with async validation - The value of an invalid dependent cell should be updated in a new row(T872751)', async (t) => {
685688
const dataGrid = new DataGrid('#container');
686689

687690
await dataGrid.apiAddRow();
@@ -717,7 +720,8 @@ test('Cell mode(calculateCellValue) with async validation - The value of an inva
717720
}, 'lastName'],
718721
})));
719722

720-
test('Cell mode(calculateCellValue) with async validation - The value of an invalid dependent cell should be updated in a modified row(T872751)', async (t) => {
723+
// TODO Chrome133: skipped during chrome update
724+
test.skip('Cell mode(calculateCellValue) with async validation - The value of an invalid dependent cell should be updated in a modified row(T872751)', async (t) => {
721725
const dataGrid = new DataGrid('#container');
722726

723727
await t.expect(dataGrid.isReady()).ok();
@@ -2446,7 +2450,8 @@ test('Popup EditForm screenshot when editRowKey is initially specified', async (
24462450
},
24472451
].forEach(({ theme, useIcons }) => {
24482452
// T1179114
2449-
test(`The disabled state should be correct for a custom button when given as a SVG image (${theme})`, async (t) => {
2453+
// TODO Chrome133: skipped during chrome update
2454+
test.skip(`The disabled state should be correct for a custom button when given as a SVG image (${theme})`, async (t) => {
24502455
const { takeScreenshot, compareResults } = createScreenshotsComparer(t);
24512456
const dataGrid = new DataGrid('#container');
24522457
const commandCell = dataGrid.getDataRow(0).getCommandCell(2);

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import url from '../../../../helpers/getPageUrl';
33
import { createWidget } from '../../../../helpers/createWidget';
44

55
fixture.disablePageReloads`Export`
6-
.page(url(__dirname, '../../../../container.html'));
6+
.page(url(__dirname, '../../../container.html'));
77

88
const GRID_CONTAINER = '#container';
99

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -610,8 +610,10 @@ safeSizeTest('Dragging with scrolling should be prevented by e.cancel (T1179555)
610610
});
611611
});
612612

613+
// TODO Chrome133: skipped during chrome update
613614
// T1085143
614-
safeSizeTest('The placeholder should have correct position after dragging the row to the end when there is free space in grid and dataRowTemplate is set', async (t) => {
615+
// safeSizeTest
616+
test.skip('The placeholder should have correct position after dragging the row to the end when there is free space in grid and dataRowTemplate is set', async (t) => {
615617
const dataGrid = new DataGrid('#container');
616618

617619
await dataGrid.moveRow(0, 0, 50, true);

e2e/testcafe-devextreme/tests/dataGrid/common/security/pages/XSS.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
<head>
44
<title>Replace HTML insertion with text insertion where the markup is not needed</title>
55

6-
<link rel="stylesheet" type="text/css" href="../../../../../../packages/devextreme/artifacts/css/dx.light.css"/>
6+
<link rel="stylesheet" type="text/css" href="../../../../../../../packages/devextreme/artifacts/css/dx.light.css"/>
77

8-
<script type="text/javascript" src="../../../../../../packages/devextreme/artifacts/js/jquery.min.js"></script>
9-
<script type="text/javascript" src="../../../../../../packages/devextreme/artifacts/js/dx.all.js"></script>
8+
<script type="text/javascript" src="../../../../../../../packages/devextreme/artifacts/js/jquery.min.js"></script>
9+
<script type="text/javascript" src="../../../../../../../packages/devextreme/artifacts/js/dx.all.js"></script>
1010
</head>
1111
<body>
1212
<div id="slider-with-tooltip"></div>

e2e/testcafe-devextreme/tests/dataGrid/stickyColumns/appearance.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,6 @@ fixture.disablePageReloads`FixedColumns - appearance`
4242
.click(dataGrid.getDataRow(3).getCommandCell(0).element)
4343
.click(dataGrid.getDataRow(4).getDataCell(4).element);
4444

45-
await t.debug();
46-
4745
await takeScreenshot(`datagrid_selected_focused_edit_state_with_${showRowLinesState}_(${theme}).png`, dataGrid.element);
4846

4947
await t

e2e/testcafe-devextreme/tests/editors/numberBox/label.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ fixture.disablePageReloads`NumberBox_Label`
1616
.page(url(__dirname, '../../container.html'));
1717

1818
stylingModes.forEach((stylingMode) => {
19-
test(`Label for dxNumberBox stylingMode=${stylingMode}`, async (t) => {
19+
// TODO Chrome133: skipped during chrome update
20+
test.skip(`Label for dxNumberBox stylingMode=${stylingMode}`, async (t) => {
2021
const { takeScreenshot, compareResults } = createScreenshotsComparer(t);
2122

2223
await testScreenshot(t, takeScreenshot, `NumberBox label with stylingMode=${stylingMode}.png`, { element: '#container' });

e2e/testcafe-devextreme/tests/editors/overlays/toolbarIntegration.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import url from '../../../helpers/getPageUrl';
77
import { createWidget } from '../../../helpers/createWidget';
88
import { safeSizeTest } from '../../../helpers/safeSizeTest';
99

10-
fixture.disablePageReloads`Popup_toolbar`
10+
fixture`Popup_toolbar`
1111
.page(url(__dirname, '../../container.html'));
1212

1313
[

e2e/testcafe-devextreme/tests/htmlEditor/common.ts

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { Selector } from 'testcafe';
33
import { createWidget } from '../../helpers/createWidget';
44
import url from '../../helpers/getPageUrl';
55
import { testScreenshot } from '../../helpers/themeUtils';
6+
import { appendElementTo, setStyleAttribute } from '../../helpers/domUtils';
67

78
fixture.disablePageReloads`HtmlEditor`
89
.page(url(__dirname, '../container.html'));
@@ -12,7 +13,9 @@ fixture.disablePageReloads`HtmlEditor`
1213
const clickTarget = toolbar ? '#otherContainer .dx-bold-format' : '#container';
1314
const baseScreenName = toolbar ? 'htmleditor-with-toolbar' : 'htmleditor-without-toolbar';
1415

15-
test(`T1025549 - ${baseScreenName}`, async (t) => {
16+
// TODO Chrome133: skipped during chrome update
17+
// Unstable screenshot size in this test
18+
test.skip(`T1025549 - ${baseScreenName}`, async (t) => {
1619
const { takeScreenshot, compareResults } = createScreenshotsComparer(t);
1720

1821
await testScreenshot(t, takeScreenshot, `${baseScreenName}.png`, { element: selector });
@@ -26,19 +29,24 @@ fixture.disablePageReloads`HtmlEditor`
2629
.expect(compareResults.isValid())
2730
.ok(compareResults.errorMessages());
2831
}).before(async () => {
32+
await setStyleAttribute(Selector('#container'), 'box-sizing: border-box; height: 200px; width: 200px');
33+
await setStyleAttribute(Selector('#otherContainer'), 'box-sizing: border-box; height: 200px; width: 200px');
34+
await appendElementTo('#container', 'div', 'editor');
35+
await appendElementTo('#otherContainer', 'div', 'editorWithToolbar');
36+
2937
await createWidget('dxHtmlEditor', {
30-
height: 200,
31-
width: 200,
38+
height: '100%',
39+
width: '100%',
3240
value: Array(100).fill('string').join('\n'),
33-
});
41+
}, '#editor');
3442

35-
return createWidget('dxHtmlEditor', {
36-
height: 200,
37-
width: 200,
43+
await createWidget('dxHtmlEditor', {
44+
height: '100%',
45+
width: '100%',
3846
value: Array(100).fill('string').join('\n'),
3947
toolbar: {
4048
items: ['bold', 'color'],
4149
},
42-
}, '#otherContainer');
50+
}, '#editorWithToolbar');
4351
});
4452
});

e2e/testcafe-devextreme/tests/navigation/menu/common.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,9 @@ safeSizeTest('Menu delimiter appearance when orientation is horizontal', async (
212212
return createWidget('dxMenu', { items: menuItems }, '#container');
213213
});
214214

215-
safeSizeTest('Menu delimiter appearance when orientation is vertical', async (t) => {
215+
// TODO Chrome133: skipped during chrome update
216+
// safeSizeTest(..., [500, 500])
217+
test.skip('Menu delimiter appearance when orientation is vertical', async (t) => {
216218
const { takeScreenshot, compareResults } = createScreenshotsComparer(t);
217219
const menu = new Menu();
218220

@@ -249,7 +251,7 @@ safeSizeTest('Menu delimiter appearance when orientation is vertical', async (t)
249251
await t
250252
.expect(compareResults.isValid())
251253
.ok(compareResults.errorMessages());
252-
}, [500, 500]).before(async () => {
254+
}).before(async () => {
253255
const menuItems = [{
254256
text: 'Video Players',
255257
}, {

0 commit comments

Comments
 (0)