Skip to content

Commit ba53627

Browse files
vaadin-botvursen
andauthored
test: wait for possible scroll into view (#8574) (#8575)
Co-authored-by: Sergey Vinogradov <[email protected]>
1 parent f99effa commit ba53627

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/grid-pro/test/keyboard-navigation.common.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,8 @@ describe('keyboard navigation', () => {
9393
const secondCell = getContainerCell(grid.$.items, 2, 0);
9494
const spy = sinon.spy(secondCell, 'focus');
9595
await sendKeys({ press: 'Enter' });
96+
// Wait for possible scroll to get the cell into view
97+
await nextFrame();
9698
expect(spy.calledOnce).to.be.true;
9799
});
98100

0 commit comments

Comments
 (0)