import '../../../dist/zn.min.js'; import { expect, fixture, html } from '@open-wc/testing'; describe('', () => { it('should render a component', async () => { const el = await fixture(html` `); expect(el).to.exist; }); it('connects a trigger whose id contains CSS syntax characters', async () => { const id = 'delete-enum-cloud_hosting_&_infrastructure'; const el = await fixture(html`
`); const confirm = el.querySelector}>('zn-confirm')!; await confirm.updateComplete; // An unescaped `#id` selector throws a SyntaxError here, leaving the component unrendered. expect(confirm.shadowRoot!.querySelector('zn-dialog')).to.exist; }); });