Skip to content

Commit ee927ac

Browse files
authored
test: update grid scroll to index test to pass in Firefox (#10340)
1 parent 6610f53 commit ee927ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/grid/test/scroll-to-index.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ describe('scroll to index', () => {
5151
expect(getLastVisibleItem(grid).index).to.equal(index);
5252

5353
const table = grid.$.table;
54-
expect(table.scrollTop).to.equal(table.scrollHeight - table.offsetHeight);
54+
expect(Math.ceil(table.scrollTop)).to.equal(table.scrollHeight - table.offsetHeight);
5555
} else {
5656
expect(getFirstVisibleItem(grid).index).to.equal(index);
5757
}

0 commit comments

Comments
 (0)