pull/1186/head
Cory LaViska 2023-02-03 14:44:56 -05:00
rodzic 6bb508ef14
commit ef1f129b22
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -1,4 +1,4 @@
import { expect, fixture, html, waitUntil } from '@open-wc/testing';
import { aTimeout, expect, fixture, html, waitUntil } from '@open-wc/testing';
import { sendKeys, sendMouse } from '@web/test-runner-commands';
import sinon from 'sinon';
import type SlDropdown from './dropdown';
@ -196,6 +196,7 @@ describe('<sl-dropdown>', () => {
await trigger.updateComplete;
await sendKeys({ press: 'ArrowDown' });
await el.updateComplete;
await aTimeout(500); // sigh, Safari
const itemFocused = document.activeElement === item;
expect(itemFocused).to.be.true;