kopia lustrzana https://github.com/shoelace-style/shoelace
prettier
rodzic
5d8361c137
commit
6aa06790b7
|
@ -6,6 +6,8 @@ import { html } from 'lit';
|
||||||
import { sendKeys } from '@web/test-runner-commands';
|
import { sendKeys } from '@web/test-runner-commands';
|
||||||
import type { SlDialog } from '../shoelace.js';
|
import type { SlDialog } from '../shoelace.js';
|
||||||
|
|
||||||
|
import '../../../dist/shoelace.js';
|
||||||
|
|
||||||
async function holdShiftKey(callback: () => Promise<void>) {
|
async function holdShiftKey(callback: () => Promise<void>) {
|
||||||
await sendKeys({ down: 'Shift' });
|
await sendKeys({ down: 'Shift' });
|
||||||
await callback();
|
await callback();
|
||||||
|
@ -62,7 +64,6 @@ it('Should allow tabbing to slotted elements', async () => {
|
||||||
</tab-test-1>
|
</tab-test-1>
|
||||||
`);
|
`);
|
||||||
|
|
||||||
await aTimeout(0);
|
|
||||||
const drawer = el.shadowRoot?.querySelector('sl-drawer');
|
const drawer = el.shadowRoot?.querySelector('sl-drawer');
|
||||||
|
|
||||||
if (drawer === null || drawer === undefined) throw Error('Could not find drawer inside of the test element');
|
if (drawer === null || drawer === undefined) throw Error('Could not find drawer inside of the test element');
|
||||||
|
|
Ładowanie…
Reference in New Issue