Skip to content

Commit 0582eef

Browse files
e2e tests: remove safeTestSize utility
1 parent 894cd0e commit 0582eef

File tree

106 files changed

+679
-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.

106 files changed

+679
-837
lines changed

apps/demos/testing/skipped-tests.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ export const skippedTests = {
129129
DataGrid: ['SignalRService', 'MultipleRecordSelectionModes', 'RemoteCRUDOperations'],
130130
Map: ['ProvidersAndTypes', 'Markers', 'Routes'],
131131
Gantt: ['TaskTemplate', 'Validation'],
132+
Stepper: ['StepTemplate'],
132133
},
133134
React: {
134135
DataGrid: ['Toolbar', 'SignalRService', 'MultipleRecordSelectionModes'],

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 & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,21 +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'],
227228
// TODO: make this more stable
228-
// Stepper: ['StepTemplate'],
229+
Stepper: ['StepTemplate'],
229230
},
230231
Vue: {
232+
Charts: ['Crosshair'],
231233
Common: ['PopupAndNotificationsOverview'],
232234
// NOTE: Context menu item position is different across themes
233235
Scheduler: ['ContextMenu'],
234236
DataGrid: ['EditStateManagement', 'Toolbar', 'RemoteGrouping'],
235237
FileUploader: ['CustomDropzone']
236238
},
237239
React: {
240+
Charts: ['Crosshair'],
238241
Common: ['PopupAndNotificationsOverview'],
239242
Scheduler: ['ContextMenu'],
240243
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
@@ -259,7 +259,10 @@ async function main() {
259259

260260
await t.hover('html');
261261

262-
const [width, height] = DEFAULT_BROWSER_SIZE;
262+
// @ts-expect-error ts-errors
263+
const { meta } = t.testRun.test;
264+
265+
const [width, height] = meta?.browserSize || DEFAULT_BROWSER_SIZE;
263266
await t.resizeWindow(width, height);
264267
} else {
265268
await loadAxeCore(t);
@@ -269,13 +272,11 @@ async function main() {
269272
await addShadowRootTree(t);
270273
}
271274

272-
if (!componentFolder.includes('dataGrid')) {
273-
const currentTheme = await getCurrentTheme(t) || 'generic.light';
274-
const newTheme = args.theme || 'generic.light';
275+
const currentTheme = await getCurrentTheme(t) || 'generic.light';
276+
const newTheme = args.theme || 'generic.light';
275277

276-
if (currentTheme !== newTheme) {
277-
await changeTheme(t, newTheme);
278-
}
278+
if (currentTheme !== newTheme) {
279+
await changeTheme(t, newTheme);
279280
}
280281
},
281282
after: async (t: TestController) => {

0 commit comments

Comments
 (0)