Skip to content

Commit

Permalink
test: wait for possible scroll into view (#8574) (#8575)
Browse files Browse the repository at this point in the history
Co-authored-by: Sergey Vinogradov <[email protected]>
  • Loading branch information
vaadin-bot and vursen authored Jan 28, 2025
1 parent f99effa commit ba53627
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/grid-pro/test/keyboard-navigation.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ describe('keyboard navigation', () => {
const secondCell = getContainerCell(grid.$.items, 2, 0);
const spy = sinon.spy(secondCell, 'focus');
await sendKeys({ press: 'Enter' });
// Wait for possible scroll to get the cell into view
await nextFrame();
expect(spy.calledOnce).to.be.true;
});

Expand Down

0 comments on commit ba53627

Please sign in to comment.