Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix FF test after #11724 #11876

Merged
merged 1 commit into from
Feb 4, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
13 changes: 4 additions & 9 deletions testing/tests/DevExpress.ui.widgets.dataGrid/dataGrid.tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -4637,7 +4637,6 @@ QUnit.test('focusedRowKey should not overwrite dataSource field', function(asser

QUnit.test('DataGrid should not scroll back to the focusedRow after paging if virtual scrolling (T718905, T719205)', function(assert) {
// arrange
let isReady;
const data = [
{ name: 'Alex', phone: '111111', room: 6 },
{ name: 'Dan', phone: '2222222', room: 5 },
Expand All @@ -4653,18 +4652,14 @@ QUnit.test('DataGrid should not scroll back to the focusedRow after paging if vi
focusedRowEnabled: true,
focusedRowIndex: 0,
scrolling: { mode: 'virtual' },
paging: { pageSize: 2 },
onContentReady: function(e) {
if(!isReady) {
// act
e.component.pageIndex(1);
isReady = true;
}
}
paging: { pageSize: 2 }
}).dxDataGrid('instance');

this.clock.tick();

dataGrid.pageIndex(1);
this.clock.tick();

// assert
assert.equal(dataGrid.pageIndex(), 1, 'pageIndex');
});
Expand Down