Skip to content

Commit

Permalink
test: fix a timing issue in an integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
tomivirkki committed Dec 10, 2024
1 parent 7eef011 commit e961277
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/integration/virtual-list-date-picker.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { expect } from '@vaadin/chai-plugins';
import { fixtureSync, nextRender } from '@vaadin/testing-helpers';
import { fixtureSync, nextFrame, nextRender } from '@vaadin/testing-helpers';
import { sendKeys } from '@web/test-runner-commands';
import '@vaadin/date-picker';
import '@vaadin/virtual-list';
Expand All @@ -20,6 +20,8 @@ describe('date-picker in virtual-list', () => {
it('should not navigate the virtual list items on date picker arrow keys', async () => {
const [firstDatePicker] = list.querySelectorAll('vaadin-date-picker');
firstDatePicker.focus();
await nextFrame();
await nextFrame();
expect(firstDatePicker.parentElement.hasAttribute('focused')).to.be.true;

// Select a value for the date picker using arrow keys
Expand Down

0 comments on commit e961277

Please sign in to comment.