Skip to content

Commit aa33ff6

Browse files
committed
revert combo-box interactions.test.js
1 parent 7caf099 commit aa33ff6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/combo-box/test/interactions.test.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { expect } from '@vaadin/chai-plugins';
2-
import { resetMouse, sendKeys, sendMouse, sendMouseToElement } from '@vaadin/test-runner-commands';
2+
import { resetMouse, sendKeys, sendMouse } from '@vaadin/test-runner-commands';
33
import {
44
aTimeout,
55
click,
@@ -224,7 +224,8 @@ describe('interactions', () => {
224224
it('should keep focus in the input on toggle button click', async () => {
225225
comboBox.focus();
226226
comboBox.open();
227-
await sendMouseToElement({ type: 'click', element: comboBox._toggleElement });
227+
const rect = comboBox._toggleElement.getBoundingClientRect();
228+
await sendMouse({ type: 'click', position: [rect.x, rect.y] });
228229
expect(document.activeElement).to.equal(input);
229230
});
230231

0 commit comments

Comments
 (0)