Skip to content

Commit a5b7144

Browse files
Grids: stabilize kbn focus and selection tests (DevExpress#34410)
1 parent 06cc108 commit a5b7144

2 files changed

Lines changed: 14 additions & 5 deletions

File tree

e2e/testcafe-devextreme/tests/dataGrid/common/keyboardNavigation/keyboardNavigation.functional.ts

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6781,7 +6781,7 @@ test('Focus should be set to the grid to allow keyboard navigation when the focu
67816781
});
67826782

67836783
[true, false].forEach((focusedRowEnabled) => {
6784-
test.meta({ unstable: focusedRowEnabled })(`Focus should return to the last active cell when re-entering the rowsview via kbn if focusedRowEnabled=${focusedRowEnabled} (T1308919)`, async (t) => {
6784+
test(`Focus should return to the last active cell when re-entering the rowsview via kbn if focusedRowEnabled=${focusedRowEnabled} (T1308919)`, async (t) => {
67856785
// arrange
67866786
const button = new Button('#otherContainer');
67876787
const dataGrid = new DataGrid('#container');
@@ -6795,7 +6795,11 @@ test('Focus should be set to the grid to allow keyboard navigation when the focu
67956795
// act
67966796
await t
67976797
.click(searchPanel.input)
6798-
.pressKey('tab tab tab tab tab');
6798+
.pressKey('tab')
6799+
.pressKey('tab')
6800+
.pressKey('tab')
6801+
.pressKey('tab')
6802+
.pressKey('tab');
67996803

68006804
// assert
68016805
await t.expect(secondIDCell.isFocused).ok();
@@ -6811,13 +6815,18 @@ test('Focus should be set to the grid to allow keyboard navigation when the focu
68116815
.notOk('focus should be on the search panel');
68126816

68136817
// act
6814-
await t.pressKey('tab tab tab');
6818+
await t
6819+
.pressKey('tab')
6820+
.pressKey('tab')
6821+
.pressKey('tab');
68156822

68166823
// assert
68176824
await t.expect(secondIDCell.isFocused).ok();
68186825

68196826
// act
6820-
await t.pressKey('tab tab');
6827+
await t
6828+
.pressKey('tab')
6829+
.pressKey('tab');
68216830

68226831
// assert
68236832
await t.expect(button.isFocused).ok();

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { testScreenshot } from '../../../helpers/themeUtils';
99
fixture.disablePageReloads`Selection`
1010
.page(url(__dirname, '../../container.html'));
1111

12-
test.meta({ unstable: true })('selectAll state should be correct after unselect item if refresh(true) is called inside onSelectionChanged (T1048081)', async (t) => {
12+
test('selectAll state should be correct after unselect item if refresh(true) is called inside onSelectionChanged (T1048081)', async (t) => {
1313
const dataGrid = new DataGrid('#container');
1414

1515
const firstRowSelectionCheckBox = new CheckBox(dataGrid.getDataCell(0, 0).getEditor().element);

0 commit comments

Comments
 (0)