UNPKG

@alegendstale/holly-components

Version:

Reusable UI components created using lit

16 lines (15 loc) 483 B
import { $, expect } from '@wdio/globals'; import './bottom-sheet'; import { html, render } from 'lit'; describe('Lit component testing', () => { it('should open the sheet', async () => { render(html ` <bottom-sheet></bottom-sheet>, `, document.body); const sheet = await $('bottom-sheet'); it('should open sheet', async () => { // sheet.showSheet(true); await expect($(sheet)).toHaveAttr('open'); }); }); });