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('should display a label', async () => { const el = await fixture(html` `); const label = el.shadowRoot!.querySelector('.opt-group__label'); expect(label).to.exist; expect(label!.textContent!.trim()).to.equal('Group Label'); }); it('should have role="group"', async () => { const el = await fixture(html` `); expect(el.getAttribute('role')).to.equal('group'); }); });