import '../../../../../dist/zn.min.js'; import {expect, fixture, html} from '@open-wc/testing'; import type ZnFlowStepGroup from './flow-step-group.component'; describe('', () => { it('should render a component with its caption', async () => { const el = await fixture(html` `); expect(el.shadowRoot?.querySelector('.header')?.textContent).to.contain('Contacts'); }); it('should toggle collapsed when the header is clicked', async () => { const el = await fixture(html` `); const header = el.shadowRoot?.querySelector('.header') as HTMLElement; header.click(); await el.updateComplete; expect(el.collapsed).to.equal(true); }); });