import { expect, fixture, html } from '@open-wc/testing';
import './nile-inline-sidebar-group';
import '../nile-inline-sidebar-item/nile-inline-sidebar-item';
describe('NileInlineSidebarGroup', () => {
    it('1. renders', async () => { const el = await fixture(html `<nile-inline-sidebar-group></nile-inline-sidebar-group>`); expect(el).to.exist; });
    it('2. shadow root', async () => { const el = await fixture(html `<nile-inline-sidebar-group></nile-inline-sidebar-group>`); expect(el.shadowRoot).to.not.be.null; });
    it('3. tag name', async () => { const el = await fixture(html `<nile-inline-sidebar-group></nile-inline-sidebar-group>`); expect(el.tagName.toLowerCase()).to.equal('nile-inline-sidebar-group'); });
    it('4. label defaults empty', async () => { const el = await fixture(html `<nile-inline-sidebar-group></nile-inline-sidebar-group>`); expect(el.label).to.equal(''); });
    it('5. divider defaults false', async () => { const el = await fixture(html `<nile-inline-sidebar-group></nile-inline-sidebar-group>`); expect(el.divider).to.be.false; });
    it('6. set label', async () => { const el = await fixture(html `<nile-inline-sidebar-group label="Main"></nile-inline-sidebar-group>`); expect(el.label).to.equal('Main'); });
    it('7. set divider', async () => { const el = await fixture(html `<nile-inline-sidebar-group divider></nile-inline-sidebar-group>`); expect(el.divider).to.be.true; });
    it('8. divider reflects', async () => { const el = await fixture(html `<nile-inline-sidebar-group divider></nile-inline-sidebar-group>`); expect(el.hasAttribute('divider')).to.be.true; });
    it('9. group-label when label set', async () => { const el = await fixture(html `<nile-inline-sidebar-group label="Settings"></nile-inline-sidebar-group>`); expect(el.shadowRoot.querySelector('.group-label')).to.exist; });
    it('10. no group-label when empty', async () => { const el = await fixture(html `<nile-inline-sidebar-group></nile-inline-sidebar-group>`); expect(el.shadowRoot.querySelector('.group-label')).to.be.null; });
    it('11. group class', async () => { const el = await fixture(html `<nile-inline-sidebar-group></nile-inline-sidebar-group>`); expect(el.shadowRoot.querySelector('.group')).to.exist; });
    it('12. group-items class', async () => { const el = await fixture(html `<nile-inline-sidebar-group></nile-inline-sidebar-group>`); expect(el.shadowRoot.querySelector('.group-items')).to.exist; });
    it('13. default slot', async () => { const el = await fixture(html `<nile-inline-sidebar-group></nile-inline-sidebar-group>`); expect(el.shadowRoot.querySelector('slot:not([name])')).to.exist; });
    it('14. label slot when label set', async () => { const el = await fixture(html `<nile-inline-sidebar-group label="L"></nile-inline-sidebar-group>`); expect(el.shadowRoot.querySelector('slot[name="label"]')).to.exist; });
    it('15. dynamic label on', async () => { const el = await fixture(html `<nile-inline-sidebar-group></nile-inline-sidebar-group>`); el.label = 'New'; await el.updateComplete; expect(el.shadowRoot.querySelector('.group-label')).to.exist; });
    it('16. dynamic label cleared', async () => { const el = await fixture(html `<nile-inline-sidebar-group label="Old"></nile-inline-sidebar-group>`); el.label = ''; await el.updateComplete; expect(el.label).to.equal(''); });
    it('17. dynamic divider on', async () => { const el = await fixture(html `<nile-inline-sidebar-group></nile-inline-sidebar-group>`); el.divider = true; await el.updateComplete; expect(el.hasAttribute('divider')).to.be.true; });
    it('18. dynamic divider off', async () => { const el = await fixture(html `<nile-inline-sidebar-group divider></nile-inline-sidebar-group>`); el.divider = false; await el.updateComplete; expect(el.hasAttribute('divider')).to.be.false; });
    it('19. slotted item', async () => { const el = await fixture(html `<nile-inline-sidebar-group><nile-inline-sidebar-item>A</nile-inline-sidebar-item></nile-inline-sidebar-group>`); expect(el.querySelector('nile-inline-sidebar-item')).to.exist; });
    it('20. multiple slotted items', async () => { const el = await fixture(html `<nile-inline-sidebar-group><nile-inline-sidebar-item>A</nile-inline-sidebar-item><nile-inline-sidebar-item>B</nile-inline-sidebar-item><nile-inline-sidebar-item>C</nile-inline-sidebar-item></nile-inline-sidebar-group>`); expect(el.querySelectorAll('nile-inline-sidebar-item').length).to.equal(3); });
    it('21. text content', async () => { const el = await fixture(html `<nile-inline-sidebar-group><nile-inline-sidebar-item>Dashboard</nile-inline-sidebar-item></nile-inline-sidebar-group>`); expect(el.textContent).to.contain('Dashboard'); });
    it('22. slotted label content', async () => { const el = await fixture(html `<nile-inline-sidebar-group><span slot="label">Custom</span></nile-inline-sidebar-group>`); expect(el.querySelector('[slot="label"]')).to.exist; });
    it('23. has styles', async () => { expect((await import('./nile-inline-sidebar-group')).NileInlineSidebarGroup.styles).to.exist; });
    it('24. is defined', async () => { expect(customElements.get('nile-inline-sidebar-group')).to.exist; });
    it('25. shadow mode', async () => { const el = await fixture(html `<nile-inline-sidebar-group></nile-inline-sidebar-group>`); expect(el.shadowRoot.mode).to.equal('open'); });
    it('26. isConnected', async () => { const el = await fixture(html `<nile-inline-sidebar-group></nile-inline-sidebar-group>`); expect(el.isConnected).to.be.true; });
    it('27. removal', async () => { const el = await fixture(html `<nile-inline-sidebar-group></nile-inline-sidebar-group>`); el.remove(); expect(el.isConnected).to.be.false; });
    it('28. outerHTML', async () => { const el = await fixture(html `<nile-inline-sidebar-group></nile-inline-sidebar-group>`); expect(el.outerHTML).to.contain('nile-inline-sidebar-group'); });
    it('29. matches', async () => { const el = await fixture(html `<nile-inline-sidebar-group class="x"></nile-inline-sidebar-group>`); expect(el.matches('.x')).to.be.true; });
    it('30. closest', async () => { const el = await fixture(html `<nile-inline-sidebar-group></nile-inline-sidebar-group>`); expect(el.closest('nile-inline-sidebar-group')).to.equal(el); });
    it('31. cloneNode', async () => { const el = await fixture(html `<nile-inline-sidebar-group></nile-inline-sidebar-group>`); expect(el.cloneNode(true).tagName.toLowerCase()).to.equal('nile-inline-sidebar-group'); });
    it('32. dispatchEvent', async () => { const el = await fixture(html `<nile-inline-sidebar-group></nile-inline-sidebar-group>`); let f = false; el.addEventListener('c', () => (f = true)); el.dispatchEvent(new Event('c')); expect(f).to.be.true; });
    it('33. updateComplete', async () => { const el = await fixture(html `<nile-inline-sidebar-group></nile-inline-sidebar-group>`); const r = await el.updateComplete; expect(r).to.not.be.undefined; });
    it('34. render method', async () => { const el = await fixture(html `<nile-inline-sidebar-group></nile-inline-sidebar-group>`); expect(el.render).to.be.a('function'); });
    it('35. shadowRoot host', async () => { const el = await fixture(html `<nile-inline-sidebar-group></nile-inline-sidebar-group>`); expect(el.shadowRoot.host).to.equal(el); });
    it('36. class attr', async () => { const el = await fixture(html `<nile-inline-sidebar-group class="g"></nile-inline-sidebar-group>`); expect(el.classList.contains('g')).to.be.true; });
    it('37. id attr', async () => { const el = await fixture(html `<nile-inline-sidebar-group id="g1"></nile-inline-sidebar-group>`); expect(el.id).to.equal('g1'); });
    it('38. hidden', async () => { const el = await fixture(html `<nile-inline-sidebar-group hidden></nile-inline-sidebar-group>`); expect(el.hidden).to.be.true; });
    it('39. nodeType', async () => { const el = await fixture(html `<nile-inline-sidebar-group></nile-inline-sidebar-group>`); expect(el.nodeType).to.equal(1); });
    it('40. localName', async () => { const el = await fixture(html `<nile-inline-sidebar-group></nile-inline-sidebar-group>`); expect(el.localName).to.equal('nile-inline-sidebar-group'); });
    it('41. namespaceURI', async () => { const el = await fixture(html `<nile-inline-sidebar-group></nile-inline-sidebar-group>`); expect(el.namespaceURI).to.equal('http://www.w3.org/1999/xhtml'); });
    it('42. ownerDocument', async () => { const el = await fixture(html `<nile-inline-sidebar-group></nile-inline-sidebar-group>`); expect(el.ownerDocument).to.equal(document); });
    it('43. multiple instances', async () => { const c = await fixture(html `<div><nile-inline-sidebar-group></nile-inline-sidebar-group><nile-inline-sidebar-group></nile-inline-sidebar-group></div>`); expect(c.querySelectorAll('nile-inline-sidebar-group').length).to.equal(2); });
    it('44. parent-child', async () => { const c = await fixture(html `<div><nile-inline-sidebar-group></nile-inline-sidebar-group></div>`); expect(c.querySelector('nile-inline-sidebar-group').parentElement).to.equal(c); });
    it('45. createElement', async () => { const el = document.createElement('nile-inline-sidebar-group'); document.body.appendChild(el); await el.updateComplete; expect(el.shadowRoot).to.not.be.null; document.body.removeChild(el); });
    it('46. dataset', async () => { const el = await fixture(html `<nile-inline-sidebar-group data-idx="0"></nile-inline-sidebar-group>`); expect(el.dataset.idx).to.equal('0'); });
    it('47. classList add', async () => { const el = await fixture(html `<nile-inline-sidebar-group></nile-inline-sidebar-group>`); el.classList.add('z'); expect(el.classList.contains('z')).to.be.true; });
    it('48. getBoundingClientRect', async () => { const el = await fixture(html `<nile-inline-sidebar-group></nile-inline-sidebar-group>`); expect(el.getBoundingClientRect()).to.exist; });
    it('49. no form', async () => { const el = await fixture(html `<nile-inline-sidebar-group></nile-inline-sidebar-group>`); expect(el.shadowRoot.querySelector('form')).to.be.null; });
    it('50. no input', async () => { const el = await fixture(html `<nile-inline-sidebar-group></nile-inline-sidebar-group>`); expect(el.shadowRoot.querySelector('input')).to.be.null; });
    it('51. no button', async () => { const el = await fixture(html `<nile-inline-sidebar-group></nile-inline-sidebar-group>`); expect(el.shadowRoot.querySelector('button')).to.be.null; });
    it('52. no anchor', async () => { const el = await fixture(html `<nile-inline-sidebar-group></nile-inline-sidebar-group>`); expect(el.shadowRoot.querySelector('a')).to.be.null; });
    it('53. no img', async () => { const el = await fixture(html `<nile-inline-sidebar-group></nile-inline-sidebar-group>`); expect(el.shadowRoot.querySelector('img')).to.be.null; });
    it('54. no svg', async () => { const el = await fixture(html `<nile-inline-sidebar-group></nile-inline-sidebar-group>`); expect(el.shadowRoot.querySelector('svg')).to.be.null; });
    it('55. style attr', async () => { const el = await fixture(html `<nile-inline-sidebar-group style="color:red"></nile-inline-sidebar-group>`); expect(el.style.color).to.equal('red'); });
    it('56. data attr', async () => { const el = await fixture(html `<nile-inline-sidebar-group data-x="1"></nile-inline-sidebar-group>`); expect(el.getAttribute('data-x')).to.equal('1'); });
    it('57. aria-label', async () => { const el = await fixture(html `<nile-inline-sidebar-group aria-label="Group"></nile-inline-sidebar-group>`); expect(el.getAttribute('aria-label')).to.equal('Group'); });
    it('58. role', async () => { const el = await fixture(html `<nile-inline-sidebar-group role="group"></nile-inline-sidebar-group>`); expect(el.getAttribute('role')).to.equal('group'); });
    it('59. dir', async () => { const el = await fixture(html `<nile-inline-sidebar-group dir="rtl"></nile-inline-sidebar-group>`); expect(el.dir).to.equal('rtl'); });
    it('60. title attr', async () => { const el = await fixture(html `<nile-inline-sidebar-group title="G"></nile-inline-sidebar-group>`); expect(el.title).to.equal('G'); });
    it('61. lang attr', async () => { const el = await fixture(html `<nile-inline-sidebar-group lang="en"></nile-inline-sidebar-group>`); expect(el.lang).to.equal('en'); });
    it('62. tabindex', async () => { const el = await fixture(html `<nile-inline-sidebar-group tabindex="0"></nile-inline-sidebar-group>`); expect(el.getAttribute('tabindex')).to.equal('0'); });
    it('63. requestUpdate', async () => { const el = await fixture(html `<nile-inline-sidebar-group></nile-inline-sidebar-group>`); el.requestUpdate(); await el.updateComplete; expect(el.shadowRoot).to.not.be.null; });
    it('64. shadow childNodes', async () => { const el = await fixture(html `<nile-inline-sidebar-group></nile-inline-sidebar-group>`); expect(el.shadowRoot.childNodes.length).to.be.greaterThan(0); });
    it('65. scrollIntoView', async () => { const el = await fixture(html `<nile-inline-sidebar-group></nile-inline-sidebar-group>`); expect(el.scrollIntoView).to.be.a('function'); });
    it('66. focus method', async () => { const el = await fixture(html `<nile-inline-sidebar-group></nile-inline-sidebar-group>`); expect(el.focus).to.be.a('function'); });
    it('67. blur method', async () => { const el = await fixture(html `<nile-inline-sidebar-group></nile-inline-sidebar-group>`); expect(el.blur).to.be.a('function'); });
    it('68. class toggle', async () => { const el = await fixture(html `<nile-inline-sidebar-group></nile-inline-sidebar-group>`); el.classList.toggle('a'); expect(el.classList.contains('a')).to.be.true; });
    it('69. toggle hidden', async () => { const el = await fixture(html `<nile-inline-sidebar-group></nile-inline-sidebar-group>`); el.hidden = true; expect(el.hidden).to.be.true; });
    it('70. dispatchCustomEvent', async () => { const el = await fixture(html `<nile-inline-sidebar-group></nile-inline-sidebar-group>`); let d; el.addEventListener('t', ((e) => { d = e.detail; })); el.dispatchEvent(new CustomEvent('t', { detail: 'x' })); expect(d).to.equal('x'); });
    it('71. nested in div', async () => { const c = await fixture(html `<div><nile-inline-sidebar-group></nile-inline-sidebar-group></div>`); expect(c.querySelector('nile-inline-sidebar-group')).to.exist; });
    it('72. no table', async () => { const el = await fixture(html `<nile-inline-sidebar-group></nile-inline-sidebar-group>`); expect(el.shadowRoot.querySelector('table')).to.be.null; });
    it('73. no canvas', async () => { const el = await fixture(html `<nile-inline-sidebar-group></nile-inline-sidebar-group>`); expect(el.shadowRoot.querySelector('canvas')).to.be.null; });
    it('74. no ul', async () => { const el = await fixture(html `<nile-inline-sidebar-group></nile-inline-sidebar-group>`); expect(el.shadowRoot.querySelector('ul')).to.be.null; });
    it('75. no video', async () => { const el = await fixture(html `<nile-inline-sidebar-group></nile-inline-sidebar-group>`); expect(el.shadowRoot.querySelector('video')).to.be.null; });
    it('76. no audio', async () => { const el = await fixture(html `<nile-inline-sidebar-group></nile-inline-sidebar-group>`); expect(el.shadowRoot.querySelector('audio')).to.be.null; });
    it('77. no nav', async () => { const el = await fixture(html `<nile-inline-sidebar-group></nile-inline-sidebar-group>`); expect(el.shadowRoot.querySelector('nav')).to.be.null; });
    it('78. no textarea', async () => { const el = await fixture(html `<nile-inline-sidebar-group></nile-inline-sidebar-group>`); expect(el.shadowRoot.querySelector('textarea')).to.be.null; });
    it('79. no select', async () => { const el = await fixture(html `<nile-inline-sidebar-group></nile-inline-sidebar-group>`); expect(el.shadowRoot.querySelector('select')).to.be.null; });
    it('80. setAttribute data', async () => { const el = await fixture(html `<nile-inline-sidebar-group></nile-inline-sidebar-group>`); el.setAttribute('data-test', '1'); expect(el.dataset.test).to.equal('1'); });
    it('81. removeAttribute hidden', async () => { const el = await fixture(html `<nile-inline-sidebar-group hidden></nile-inline-sidebar-group>`); el.removeAttribute('hidden'); expect(el.hidden).to.be.false; });
    it('82. setAttribute class', async () => { const el = await fixture(html `<nile-inline-sidebar-group></nile-inline-sidebar-group>`); el.setAttribute('class', 'test'); expect(el.classList.contains('test')).to.be.true; });
    it('83. setAttribute divider', async () => { const el = await fixture(html `<nile-inline-sidebar-group></nile-inline-sidebar-group>`); el.setAttribute('divider', ''); await el.updateComplete; expect(el.divider).to.be.true; });
    it('84. removeAttribute divider', async () => { const el = await fixture(html `<nile-inline-sidebar-group divider></nile-inline-sidebar-group>`); el.removeAttribute('divider'); await el.updateComplete; expect(el.divider).to.be.false; });
    it('85. setAttribute label', async () => { const el = await fixture(html `<nile-inline-sidebar-group></nile-inline-sidebar-group>`); el.setAttribute('label', 'Test'); await el.updateComplete; expect(el.label).to.equal('Test'); });
    it('86. aria-describedby', async () => { const el = await fixture(html `<nile-inline-sidebar-group aria-describedby="d"></nile-inline-sidebar-group>`); expect(el.getAttribute('aria-describedby')).to.equal('d'); });
    it('87. multiple re-renders', async () => { const el = await fixture(html `<nile-inline-sidebar-group></nile-inline-sidebar-group>`); for (let i = 0; i < 3; i++) {
        el.requestUpdate();
        await el.updateComplete;
    } expect(el.shadowRoot).to.not.be.null; });
    it('88. contains child', async () => { const el = await fixture(html `<nile-inline-sidebar-group><nile-inline-sidebar-item id="i1">A</nile-inline-sidebar-item></nile-inline-sidebar-group>`); expect(el.contains(el.querySelector('#i1'))).to.be.true; });
    it('89. children survived update', async () => { const el = await fixture(html `<nile-inline-sidebar-group><nile-inline-sidebar-item id="i1">A</nile-inline-sidebar-item></nile-inline-sidebar-group>`); el.requestUpdate(); await el.updateComplete; expect(el.querySelector('#i1')).to.exist; });
    it('90. children survived label change', async () => { const el = await fixture(html `<nile-inline-sidebar-group label="Old"><nile-inline-sidebar-item id="i1">A</nile-inline-sidebar-item></nile-inline-sidebar-group>`); el.label = 'New'; await el.updateComplete; expect(el.querySelector('#i1')).to.exist; });
    it('91. childElementCount', async () => { const el = await fixture(html `<nile-inline-sidebar-group><nile-inline-sidebar-item>A</nile-inline-sidebar-item><nile-inline-sidebar-item>B</nile-inline-sidebar-item></nile-inline-sidebar-group>`); expect(el.childElementCount).to.equal(2); });
    it('92. firstElementChild', async () => { const el = await fixture(html `<nile-inline-sidebar-group><nile-inline-sidebar-item>A</nile-inline-sidebar-item></nile-inline-sidebar-group>`); expect(el.firstElementChild.tagName.toLowerCase()).to.equal('nile-inline-sidebar-item'); });
    it('93. appendChild', async () => { const el = await fixture(html `<nile-inline-sidebar-group></nile-inline-sidebar-group>`); const item = document.createElement('nile-inline-sidebar-item'); item.textContent = 'New'; el.appendChild(item); expect(el.querySelector('nile-inline-sidebar-item')).to.exist; });
    it('94. removeChild', async () => { const el = await fixture(html `<nile-inline-sidebar-group><nile-inline-sidebar-item id="i1">A</nile-inline-sidebar-item></nile-inline-sidebar-group>`); const item = el.querySelector('#i1'); el.removeChild(item); expect(el.querySelector('#i1')).to.be.null; });
    it('95. rapid divider toggles', async () => { const el = await fixture(html `<nile-inline-sidebar-group></nile-inline-sidebar-group>`); el.divider = true; await el.updateComplete; el.divider = false; await el.updateComplete; el.divider = true; await el.updateComplete; expect(el.divider).to.be.true; });
    it('96. rapid label changes', async () => { const el = await fixture(html `<nile-inline-sidebar-group></nile-inline-sidebar-group>`); el.label = 'A'; await el.updateComplete; el.label = 'B'; await el.updateComplete; el.label = 'C'; await el.updateComplete; expect(el.label).to.equal('C'); });
    it('97. no h1', async () => { const el = await fixture(html `<nile-inline-sidebar-group></nile-inline-sidebar-group>`); expect(el.shadowRoot.querySelector('h1')).to.be.null; });
    it('98. no pre', async () => { const el = await fixture(html `<nile-inline-sidebar-group></nile-inline-sidebar-group>`); expect(el.shadowRoot.querySelector('pre')).to.be.null; });
    it('99. no hr', async () => { const el = await fixture(html `<nile-inline-sidebar-group></nile-inline-sidebar-group>`); expect(el.shadowRoot.querySelector('hr')).to.be.null; });
    it('100. full integration', async () => { const el = await fixture(html `<nile-inline-sidebar-group label="Settings" divider class="g" id="g1" aria-label="Settings Group"><nile-inline-sidebar-item active>Profile</nile-inline-sidebar-item><nile-inline-sidebar-item>Preferences</nile-inline-sidebar-item><nile-inline-sidebar-item disabled>Admin</nile-inline-sidebar-item></nile-inline-sidebar-group>`); expect(el.label).to.equal('Settings'); expect(el.divider).to.be.true; expect(el.id).to.equal('g1'); expect(el.getAttribute('aria-label')).to.equal('Settings Group'); expect(el.querySelectorAll('nile-inline-sidebar-item').length).to.equal(3); expect(el.shadowRoot.querySelector('.group')).to.exist; expect(el.shadowRoot.querySelector('.group-label')).to.exist; expect(el.shadowRoot.querySelector('.group-items')).to.exist; });
});
//# sourceMappingURL=nile-inline-sidebar-group.test.js.map