Skip to content

Commit 11bdd1c

Browse files
e2e tests: remove safeTestSize utility
1 parent 88f46fe commit 11bdd1c

File tree

99 files changed

+676
-837
lines changed

Some content is hidden

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

99 files changed

+676
-837
lines changed

apps/demos/testing/widgets/dropdownbutton/DropDownButton.test.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,14 @@ runManualTest('DropDownButton', 'Overview', (test) => {
1717

1818
await t
1919
.click($(`.${DROP_DOWN_BUTTON_CLASS}`).nth(0));
20-
// .wait(200);
2120

2221
await testScreenshot(t, takeScreenshot, 'dropdown_button_overview_custom_static_text.png');
2322

2423
await t
2524
.click($(`.${DROP_DOWN_BUTTON_CLASS}`).nth(0));
26-
// .wait(200);
2725

2826
await t
2927
.click($(`.${DROP_DOWN_BUTTON_TOGGLE_CLASS}`));
30-
// .wait(200);
3128

3229
await testScreenshot(t, takeScreenshot, 'dropdown_button_overview_custom_button_action.png');
3330

apps/demos/testing/widgets/lookup/Lookup.test.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,9 @@ runManualTest('Lookup', 'Basics', (test) => {
1616

1717
await t
1818
.click($(`.${LOOKUP_CLASS}`).nth(0));
19-
// .wait(200);
2019

2120
await t
2221
.click($(`.${LOOKUP_CLASS}`).nth(1));
23-
// .wait(200);
2422

2523
await testScreenshot(t, takeScreenshot, 'lookup_templates_custom_appearance.png');
2624

apps/demos/testing/widgets/tabpanel/Overview.test.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,21 +22,18 @@ runManualTest('TabPanel', 'Overview', (test) => {
2222
await t
2323
.click($selectBox.nth(0))
2424
.click($(`.${SELECTBOX_POPUP_WRAPPER_CLASS} .${LIST_ITEM_CLASS}`).nth(1));
25-
// .wait(200);
2625

2726
await testScreenshot(t, takeScreenshot, 'tabpanel_tabsposition_top.png');
2827

2928
await t
3029
.click($selectBox.nth(1))
3130
.click($(`.${SELECTBOX_POPUP_WRAPPER_CLASS} .${LIST_ITEM_CLASS}`).nth(1));
32-
// .wait(200);
3331

3432
await testScreenshot(t, takeScreenshot, 'tabpanel_stylingmode_primary.png');
3533

3634
await t
3735
.click($selectBox.nth(2))
3836
.click($(`.${SELECTBOX_POPUP_WRAPPER_CLASS} .${LIST_ITEM_CLASS}`).nth(1));
39-
// .wait(200);
4037

4138
await testScreenshot(t, takeScreenshot, 'tabpanel_iconposition_start.png');
4239

apps/demos/testing/widgets/tabs/Overview.test.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,54 +21,46 @@ runManualTest('Tabs', 'Overview', (test) => {
2121
await t
2222
.click($(`.${OPTION_CLASS} .${SELECTBOX_CLASS}`).nth(0))
2323
.click($(`.${SELECTBOX_POPUP_WRAPPER_CLASS} .${LIST_ITEM_CLASS}`).nth(1));
24-
// .wait(200);
2524

2625
await testScreenshot(t, takeScreenshot, 'tabs_orientation_vertical.png');
2726

2827
await t
2928
.click($(`.${OPTION_CLASS} .${SELECTBOX_CLASS}`).nth(1))
3029
.click($(`.${SELECTBOX_POPUP_WRAPPER_CLASS} .${LIST_ITEM_CLASS}`).nth(1));
31-
// .wait(200);
3230

3331
await testScreenshot(t, takeScreenshot, 'tabs_stylingmode_secondary.png');
3432

3533
await t
3634
.click($(`.${OPTION_CLASS} .${SELECTBOX_CLASS}`).nth(2))
3735
.click($(`.${SELECTBOX_POPUP_WRAPPER_CLASS} .${LIST_ITEM_CLASS}`).nth(2));
38-
// .wait(200);
3936

4037
await testScreenshot(t, takeScreenshot, 'tabs_iconposition_end.png');
4138

4239
await t
4340
.click($(`.${OPTION_CLASS} .${CHECKBOX_CLASS}`).nth(3));
44-
// .wait(200);
4541

4642
await testScreenshot(t, takeScreenshot, 'tabs_rtlenabled_true.png');
4743

4844
await t
4945
.click($(`.${OPTION_CLASS} .${CHECKBOX_CLASS}`).nth(3))
5046
.click($(`.${OPTION_CLASS} .${SELECTBOX_CLASS}`).nth(0))
5147
.click($(`.${SELECTBOX_POPUP_WRAPPER_CLASS} .${LIST_ITEM_CLASS}`).nth(0));
52-
// .wait(200);
5348

5449
await t
5550
.click($(`.${OPTION_CLASS} .${CHECKBOX_CLASS}`).nth(0));
56-
// .wait(200);
5751

5852
await testScreenshot(t, takeScreenshot, 'tabs_shownavbuttons_true.png');
5953

6054
await t
6155
.click($(`.${OPTION_CLASS} .${CHECKBOX_CLASS}`).nth(2))
6256
.click($(`.${OPTION_CLASS} .${SELECTBOX_CLASS}`).nth(0))
6357
.click($(`.${SELECTBOX_POPUP_WRAPPER_CLASS} .${LIST_ITEM_CLASS}`).nth(1));
64-
// .wait(200);
6558

6659
await testScreenshot(t, takeScreenshot, 'tabs_orientation_vertical_without_strict_class.png');
6760

6861
await t
6962
.click($(`.${OPTION_CLASS} .${SELECTBOX_CLASS}`).nth(0))
7063
.click($(`.${SELECTBOX_POPUP_WRAPPER_CLASS} .${LIST_ITEM_CLASS}`).nth(0));
71-
// .wait(200);
7264

7365
await testScreenshot(t, takeScreenshot, 'tabs_orientation_horizontal_with_strict_class.png');
7466

apps/demos/testing/widgets/tabs/Selection.test.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,12 @@ runManualTest('Tabs', 'Selection', (test) => {
2121

2222
await t
2323
.click($(`.${TABS_WRAPPER_CLASS} .${TAB_CLASS}`).nth(1));
24-
// .wait(200);
2524

2625
await testScreenshot(t, takeScreenshot, 'tabs_second_item_selection.png');
2726

2827
await t
2928
.click($(`.${SELECT_BOX_CONTAINER_CLASS} .${SELECTBOX_CLASS}`).nth(0))
3029
.click($(`.${SELECTBOX_POPUP_WRAPPER_CLASS} .${LIST_ITEM_CLASS}`).nth(2));
31-
// .wait(200);
3230

3331
await testScreenshot(t, takeScreenshot, 'tabs_third_item_selection.png');
3432

apps/demos/testing/widgets/treeview/ItemSelectionAndCustomization.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ runManualTest('TreeView', 'ItemSelectionAndCustomization', (test) => {
1717

1818
await t
1919
.click($(`.${OPTION_CLASS} .${SELECTBOX_CLASS}`).nth(0));
20-
// .wait(200);
2120

2221
await testScreenshot(t, takeScreenshot, 'treeview_selection_field_is_open.png');
2322

apps/demos/utils/visual-tests/matrix-test-helper.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,20 +220,24 @@ const SKIPPED_TESTS = {
220220
],
221221
},
222222
Angular: {
223+
Charts: ['Crosshair'],
223224
Common: ['PopupAndNotificationsOverview'],
224225
DataGrid: ['EditStateManagement', 'Toolbar', 'RemoteGrouping'],
225226
Scheduler: ['ContextMenu'],
226227
FileUploader: ['CustomDropzone'],
228+
// TODO: make this more stable
227229
Stepper: ['StepTemplate'],
228230
},
229231
Vue: {
232+
Charts: ['Crosshair'],
230233
Common: ['PopupAndNotificationsOverview'],
231234
// NOTE: Context menu item position is different across themes
232235
Scheduler: ['ContextMenu'],
233236
DataGrid: ['EditStateManagement', 'Toolbar', 'RemoteGrouping'],
234237
FileUploader: ['CustomDropzone']
235238
},
236239
React: {
240+
Charts: ['Crosshair'],
237241
Common: ['PopupAndNotificationsOverview'],
238242
Scheduler: ['ContextMenu'],
239243
DataGrid: ['EditStateManagement', 'Toolbar', 'RemoteGrouping'],

e2e/testcafe-devextreme/helpers/safeSizeTest.ts

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

e2e/testcafe-devextreme/runner.ts

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,10 @@ createTestCafe(TESTCAFE_CONFIG)
265265

266266
await t.hover('html');
267267

268-
const [width, height] = DEFAULT_BROWSER_SIZE;
268+
// @ts-expect-error ts-errors
269+
const { meta } = t.testRun.test;
270+
271+
const [width, height] = meta?.browserSize || DEFAULT_BROWSER_SIZE;
269272
await t.resizeWindow(width, height);
270273
} else {
271274
await loadAxeCore(t);
@@ -275,13 +278,11 @@ createTestCafe(TESTCAFE_CONFIG)
275278
await addShadowRootTree(t);
276279
}
277280

278-
if (!componentFolder.includes('dataGrid')) {
279-
const currentTheme = await getCurrentTheme(t) || 'generic.light';
280-
const newTheme = args.theme || 'generic.light';
281+
const currentTheme = await getCurrentTheme(t) || 'generic.light';
282+
const newTheme = args.theme || 'generic.light';
281283

282-
if (currentTheme !== newTheme) {
283-
await changeTheme(t, newTheme);
284-
}
284+
if (currentTheme !== newTheme) {
285+
await changeTheme(t, newTheme);
285286
}
286287
},
287288
after: async (t: TestController) => {

e2e/testcafe-devextreme/tests/cardView/columnSortable/utils.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ export const dragToHeaderPanel = async (
9191
{ destinationOffsetX: -5, destinationOffsetY: -20, speed: 0.5 },
9292
);
9393
}
94+
95+
await t.wait(100);
9496
};
9597

9698
export const dragToColumnChooser = async (

0 commit comments

Comments
 (0)