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('marks slotted buttons with panel-bg and clears it when removed', async () => { const el = await fixture}>(html` One Two `); await el.updateComplete; const buttons = [...el.querySelectorAll('zn-button')]; expect(buttons.every(b => b.hasAttribute('data-zn-button-group__button--panel-bg'))).to.be.true; el.panelBackground = false; await el.updateComplete; expect(buttons.some(b => b.hasAttribute('data-zn-button-group__button--panel-bg'))).to.be.false; }); });