From 835add838831e954c3634308bf74cd8d8109a83a Mon Sep 17 00:00:00 2001 From: Andrey Dolzhikov Date: Fri, 22 Dec 2023 17:50:33 +0300 Subject: [PATCH] Skip unstable tests (#26342) --- .../testcafe/tests/dataGrid/columnReordering.ts | 2 +- .../testing/testcafe/tests/dataGrid/editing.ts | 2 +- .../testing/testcafe/tests/dataGrid/editing_matrix.ts | 10 +++++++++- .../testing/testcafe/tests/dataGrid/masterDetail.ts | 4 ++-- .../testing/testcafe/tests/dataGrid/rowDragging.ts | 2 +- .../testing/testcafe/tests/dataGrid/scrolling.ts | 2 +- .../testcafe/tests/scheduler/deleteAppointments.ts | 2 +- 7 files changed, 16 insertions(+), 8 deletions(-) diff --git a/packages/devextreme/testing/testcafe/tests/dataGrid/columnReordering.ts b/packages/devextreme/testing/testcafe/tests/dataGrid/columnReordering.ts index b34905673805..43f363ce88a2 100644 --- a/packages/devextreme/testing/testcafe/tests/dataGrid/columnReordering.ts +++ b/packages/devextreme/testing/testcafe/tests/dataGrid/columnReordering.ts @@ -68,7 +68,7 @@ test('The column reordering should work correctly when there is a fixed column w })); // T1038094 -test('The separator should display correctly when dragging column', async (t) => { +test.skip('The separator should display correctly when dragging column', async (t) => { const dataGrid = new DataGrid('#container'); await dataGrid.moveHeader(0, 200, 5, true); diff --git a/packages/devextreme/testing/testcafe/tests/dataGrid/editing.ts b/packages/devextreme/testing/testcafe/tests/dataGrid/editing.ts index 7c1fdbec2144..7f51c125c098 100644 --- a/packages/devextreme/testing/testcafe/tests/dataGrid/editing.ts +++ b/packages/devextreme/testing/testcafe/tests/dataGrid/editing.ts @@ -2079,7 +2079,7 @@ test('The "Cannot read property "brokenRules" of undefined" error occurs T978286 })); }); -test('Cells should be focused correctly on click when cell editing mode is used with enabled showEditorAlways (T1037019)', async (t) => { +test.skip('Cells should be focused correctly on click when cell editing mode is used with enabled showEditorAlways (T1037019)', async (t) => { const dataGrid = new DataGrid('#container'); // act diff --git a/packages/devextreme/testing/testcafe/tests/dataGrid/editing_matrix.ts b/packages/devextreme/testing/testcafe/tests/dataGrid/editing_matrix.ts index 8b61fdce462d..b0a819d94b4c 100644 --- a/packages/devextreme/testing/testcafe/tests/dataGrid/editing_matrix.ts +++ b/packages/devextreme/testing/testcafe/tests/dataGrid/editing_matrix.ts @@ -407,7 +407,15 @@ editingModes.forEach((mode) => { repaintChangesOnly, }; - test(`Update cell value ${JSON.stringify({ + const testCase = mode === 'cell' + && dataField === 'text' + && !repaintChangesOnly + && useKeyboard + && !useMask + && !isAdding + ? test.skip : test; + + testCase(`Update cell value ${JSON.stringify({ mode, dataField, repaintChangesOnly, useKeyboard, useMask, isAdding, })}`, async (t) => { const rowIndex = 0; diff --git a/packages/devextreme/testing/testcafe/tests/dataGrid/masterDetail.ts b/packages/devextreme/testing/testcafe/tests/dataGrid/masterDetail.ts index 2aa0fd345a6a..e5c543562a21 100644 --- a/packages/devextreme/testing/testcafe/tests/dataGrid/masterDetail.ts +++ b/packages/devextreme/testing/testcafe/tests/dataGrid/masterDetail.ts @@ -122,7 +122,7 @@ test('pageSizeSelector has correct layout inside masterDetail', async (t) => { })); // T1159578 -safeSizeTest('The master detail row should display correctly when renderAsync, virtual scrolling and column fixing features are enabled', async (t) => { +/* safeSizeTest */test.skip('The master detail row should display correctly when renderAsync, virtual scrolling and column fixing features are enabled', async (t) => { // arrange const { takeScreenshot, compareResults } = createScreenshotsComparer(t); @@ -140,7 +140,7 @@ safeSizeTest('The master detail row should display correctly when renderAsync, v await t .expect(compareResults.isValid()) .ok(compareResults.errorMessages()); -}, [800, 800]) +}/* , [800, 800] */) .before(() => createWidget('dxDataGrid', { dataSource: [...new Array(40)].map((_, index) => ({ id: index, text: `item ${index}` })), keyExpr: 'id', diff --git a/packages/devextreme/testing/testcafe/tests/dataGrid/rowDragging.ts b/packages/devextreme/testing/testcafe/tests/dataGrid/rowDragging.ts index fd7ec8eaef4e..6ad4c45942c9 100644 --- a/packages/devextreme/testing/testcafe/tests/dataGrid/rowDragging.ts +++ b/packages/devextreme/testing/testcafe/tests/dataGrid/rowDragging.ts @@ -546,7 +546,7 @@ test('The draggable element should be displayed correctly after horizontal scrol }); }); -test('Dragging with scrolling should be prevented by e.cancel (T1179555)', async (t) => { +test.skip('Dragging with scrolling should be prevented by e.cancel (T1179555)', async (t) => { const dataGrid = new DataGrid('#container'); await dataGrid.scrollBy({ top: 10000 }); diff --git a/packages/devextreme/testing/testcafe/tests/dataGrid/scrolling.ts b/packages/devextreme/testing/testcafe/tests/dataGrid/scrolling.ts index 5d0aff8f3d66..25a3aa2b31ed 100644 --- a/packages/devextreme/testing/testcafe/tests/dataGrid/scrolling.ts +++ b/packages/devextreme/testing/testcafe/tests/dataGrid/scrolling.ts @@ -1616,7 +1616,7 @@ test('Restoring focus on re-rendering should be done without unexpected scrollin }); }); -test('Warning should be thrown if scrolling is virtual and height is not specified', async (t) => { +test.skip('Warning should be thrown if scrolling is virtual and height is not specified', async (t) => { const consoleMessages = await t.getBrowserConsoleMessages(); const warningExists = !!consoleMessages?.warn.find((message) => message.startsWith('W1025')); diff --git a/packages/devextreme/testing/testcafe/tests/scheduler/deleteAppointments.ts b/packages/devextreme/testing/testcafe/tests/scheduler/deleteAppointments.ts index b8e436dc2873..76300c55cc47 100644 --- a/packages/devextreme/testing/testcafe/tests/scheduler/deleteAppointments.ts +++ b/packages/devextreme/testing/testcafe/tests/scheduler/deleteAppointments.ts @@ -62,7 +62,7 @@ test('Recurrence appointments should be deleted by click on \'delete\' button', .eql(0); }).before(async () => createScheduler(createRecurrenceData())); -test('Recurrence appointments should be deleted by press \'delete\' key', async (t) => { +test.skip('Recurrence appointments should be deleted by press \'delete\' key', async (t) => { const scheduler = new Scheduler('#container'); await t