Skip to content

Commit

Permalink
try test for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
tongsonbarbs committed Aug 30, 2024
1 parent 0f7b1eb commit 38e268c
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 35 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,3 +135,38 @@ test('Focused cell should not flick (T1206435)', async (t) => {
};
});
});

test('DataGrid input cell should not put tabindex to incorrect element while on edit mode (T1239462)', async (t) => {
const dataGrid = new DataGrid('#container');
const { takeScreenshot, compareResults } = createScreenshotsComparer(t);

await t
.click(dataGrid.getToolbar().getItem(0))
.pressKey('tab');
await takeScreenshot('data-grid_keyboard-navigation-input-text-focused.png', dataGrid.element);

await t.expect(compareResults.isValid())
.ok(compareResults.errorMessages());
}).before(async () => {
await createWidget('dxDataGrid', {
showBorders: true,
selection: {
mode: 'multiple',
},
editing: {
mode: 'form',
allowAdding: true,
},
columns: [
'Calculation',
'CalculationType',
{
type: 'buttons',
fixed: true,
},
],
dataSource: {
store: [],
},
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -12,41 +12,6 @@ const CLASS = ClassNames;
fixture.disablePageReloads`Keyboard Navigation - common`
.page(url(__dirname, '../../container.html'));

test('DataGrid input cell should not put tabindex to incorrect element while on edit mode (T1239462)', async (t) => {
const dataGrid = new DataGrid('#container');
const { takeScreenshot, compareResults } = createScreenshotsComparer(t);

await t
.click(dataGrid.getToolbar().getItem(0))
.pressKey('tab');
await takeScreenshot('data-grid_keyboard-navigation-input-text-focused.png', dataGrid.element);

await t.expect(compareResults.isValid())
.ok(compareResults.errorMessages());
}).before(async () => {
await createWidget('dxDataGrid', {
showBorders: true,
selection: {
mode: 'multiple',
},
editing: {
mode: 'form',
allowAdding: true,
},
columns: [
'Calculation',
'CalculationType',
{
type: 'buttons',
fixed: true,
},
],
dataSource: {
store: [],
},
});
});

test('Changing keyboardNavigation options should not invalidate the entire content (T1197829)', async (t) => {
const dataGrid = new DataGrid('#container');

Expand Down

0 comments on commit 38e268c

Please sign in to comment.