Skip to content

Commit 1a67713

Browse files
committed
test: fix a timing issue in an integration test
1 parent 7eef011 commit 1a67713

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/integration/virtual-list-date-picker.test.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import { expect } from '@vaadin/chai-plugins';
2-
import { fixtureSync, nextRender } from '@vaadin/testing-helpers';
2+
import { fixtureSync, nextFrame, nextRender } from '@vaadin/testing-helpers';
33
import { sendKeys } from '@web/test-runner-commands';
44
import '@vaadin/date-picker';
55
import '@vaadin/virtual-list';
6+
67
describe('date-picker in virtual-list', () => {
78
let list;
89

@@ -20,6 +21,8 @@ describe('date-picker in virtual-list', () => {
2021
it('should not navigate the virtual list items on date picker arrow keys', async () => {
2122
const [firstDatePicker] = list.querySelectorAll('vaadin-date-picker');
2223
firstDatePicker.focus();
24+
await nextFrame();
25+
await nextFrame();
2326
expect(firstDatePicker.parentElement.hasAttribute('focused')).to.be.true;
2427

2528
// Select a value for the date picker using arrow keys

0 commit comments

Comments
 (0)