Skip to content

Commit

Permalink
extract getFocusedCell, getFocusedRow into separate file
Browse files Browse the repository at this point in the history
  • Loading branch information
vursen committed Oct 18, 2024
1 parent 602f05b commit 4c3612d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/grid/test/keyboard-navigation.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -1321,8 +1321,8 @@ describe('keyboard navigation', () => {
grid.$.table.scrollTop = grid.$.table.scrollHeight / 2;
flushGrid(grid);
down();
expect(getFocusedRowIndex()).to.equal(1);
expect(getFocusedCellIndex()).to.equal(0);
expect(getFocusedRowIndex(grid)).to.equal(1);
expect(getFocusedCellIndex(grid)).to.equal(0);
});

it('should scroll focused row into view on Tab', () => {
Expand All @@ -1333,8 +1333,8 @@ describe('keyboard navigation', () => {
grid.$.table.scrollTop = grid.$.table.scrollHeight / 2;
flushGrid(grid);
tab();
expect(getFocusedRowIndex()).to.equal(0);
expect(getFocusedCellIndex()).to.equal(0);
expect(getFocusedRowIndex(grid)).to.equal(0);
expect(getFocusedCellIndex(grid)).to.equal(0);
});

it('should hide navigation mode when a focused row goes off screen', () => {
Expand Down

0 comments on commit 4c3612d

Please sign in to comment.