import { expect, fixture, html } from '@open-wc/testing';
import './nile-list-item';
describe('NileListItem', () => {
    it('1. renders', async () => { const el = await fixture(html `<nile-list-item></nile-list-item>`); expect(el).to.exist; });
    it('2. shadow root', async () => { const el = await fixture(html `<nile-list-item></nile-list-item>`); expect(el.shadowRoot).to.not.be.null; });
    it('3. tag name', async () => { const el = await fixture(html `<nile-list-item></nile-list-item>`); expect(el.tagName.toLowerCase()).to.equal('nile-list-item'); });
    it('4. iconName defaults empty', async () => { const el = await fixture(html `<nile-list-item></nile-list-item>`); expect(el.iconName).to.equal(''); });
    it('5. iconSize defaults 14', async () => { const el = await fixture(html `<nile-list-item></nile-list-item>`); expect(el.iconSize).to.equal(14); });
    it('6. heading defaults empty', async () => { const el = await fixture(html `<nile-list-item></nile-list-item>`); expect(el.heading).to.equal(''); });
    it('7. subHeading defaults empty', async () => { const el = await fixture(html `<nile-list-item></nile-list-item>`); expect(el.subHeading).to.equal(''); });
    it('8. set icon-name', async () => { const el = await fixture(html `<nile-list-item icon-name="info"></nile-list-item>`); expect(el.iconName).to.equal('info'); });
    it('9. set icon-size', async () => { const el = await fixture(html `<nile-list-item icon-size="20"></nile-list-item>`); expect(el.iconSize).to.equal(20); });
    it('10. set heading', async () => { const el = await fixture(html `<nile-list-item heading="Title"></nile-list-item>`); expect(el.heading).to.equal('Title'); });
    it('11. set sub-heading', async () => { const el = await fixture(html `<nile-list-item sub-heading="Subtitle"></nile-list-item>`); expect(el.subHeading).to.equal('Subtitle'); });
    it('12. heading displays', async () => { const el = await fixture(html `<nile-list-item heading="Title"></nile-list-item>`); expect(el.shadowRoot.textContent).to.contain('Title'); });
    it('13. subheading displays', async () => { const el = await fixture(html `<nile-list-item heading="T" sub-heading="Sub"></nile-list-item>`); expect(el.shadowRoot.textContent).to.contain('Sub'); });
    it('14. heading class', async () => { const el = await fixture(html `<nile-list-item heading="T"></nile-list-item>`); expect(el.shadowRoot.querySelector('.heading')).to.exist; });
    it('15. subheading class', async () => { const el = await fixture(html `<nile-list-item heading="T" sub-heading="S"></nile-list-item>`); expect(el.shadowRoot.querySelector('.subheading')).to.exist; });
    it('16. content wrapper', async () => { const el = await fixture(html `<nile-list-item></nile-list-item>`); expect(el.shadowRoot.querySelector('.content__wrapper')).to.exist; });
    it('17. list item slot', async () => { const el = await fixture(html `<nile-list-item></nile-list-item>`); expect(el.shadowRoot.querySelector('.list__item')).to.exist; });
    it('18. suffix slot', async () => { const el = await fixture(html `<nile-list-item></nile-list-item>`); expect(el.shadowRoot.querySelector('slot[name="suffix"]')).to.exist; });
    it('19. preffix slot with icon', async () => { const el = await fixture(html `<nile-list-item icon-name="info"></nile-list-item>`); expect(el.shadowRoot.querySelector('slot[name="preffix"]')).to.exist; });
    it('20. nile-icon with icon-name', async () => { const el = await fixture(html `<nile-list-item icon-name="info"></nile-list-item>`); expect(el.shadowRoot.querySelector('nile-icon')).to.exist; });
    it('21. no nile-icon without icon-name', async () => { const el = await fixture(html `<nile-list-item></nile-list-item>`); expect(el.shadowRoot.querySelector('nile-icon')).to.be.null; });
    it('22. part base', async () => { const el = await fixture(html `<nile-list-item></nile-list-item>`); expect(el.shadowRoot.querySelector('[part="base"]')).to.exist; });
    it('23. part content__wrapper', async () => { const el = await fixture(html `<nile-list-item></nile-list-item>`); expect(el.shadowRoot.querySelector('[part="content__wrapper"]')).to.exist; });
    it('24. part suffix', async () => { const el = await fixture(html `<nile-list-item></nile-list-item>`); expect(el.shadowRoot.querySelector('[part="suffix"]')).to.exist; });
    it('25. handleClick method', async () => { const el = await fixture(html `<nile-list-item></nile-list-item>`); expect(el.handleClick).to.be.a('function'); });
    it('26. emits nile-list-item-click on click', async () => { const el = await fixture(html `<nile-list-item heading="Test">Click</nile-list-item>`); let detail; el.addEventListener('nile-list-item-click', ((e) => { detail = e.detail; })); const slot = el.shadowRoot.querySelector('.list__item'); slot.click(); await el.updateComplete; expect(detail).to.exist; });
    it('27. has styles', async () => { expect((await import('./nile-list-item')).NileListItem.styles).to.exist; });
    it('28. is defined', async () => { expect(customElements.get('nile-list-item')).to.exist; });
    it('29. shadow mode', async () => { const el = await fixture(html `<nile-list-item></nile-list-item>`); expect(el.shadowRoot.mode).to.equal('open'); });
    it('30. isConnected', async () => { const el = await fixture(html `<nile-list-item></nile-list-item>`); expect(el.isConnected).to.be.true; });
    it('31. removal', async () => { const el = await fixture(html `<nile-list-item></nile-list-item>`); el.remove(); expect(el.isConnected).to.be.false; });
    it('32. outerHTML', async () => { const el = await fixture(html `<nile-list-item></nile-list-item>`); expect(el.outerHTML).to.contain('nile-list-item'); });
    it('33. matches', async () => { const el = await fixture(html `<nile-list-item class="x"></nile-list-item>`); expect(el.matches('.x')).to.be.true; });
    it('34. closest', async () => { const el = await fixture(html `<nile-list-item></nile-list-item>`); expect(el.closest('nile-list-item')).to.equal(el); });
    it('35. cloneNode', async () => { const el = await fixture(html `<nile-list-item></nile-list-item>`); expect(el.cloneNode(true).tagName.toLowerCase()).to.equal('nile-list-item'); });
    it('36. dispatchEvent', async () => { const el = await fixture(html `<nile-list-item></nile-list-item>`); let f = false; el.addEventListener('c', () => (f = true)); el.dispatchEvent(new Event('c')); expect(f).to.be.true; });
    it('37. updateComplete', async () => { const el = await fixture(html `<nile-list-item></nile-list-item>`); const r = await el.updateComplete; expect(r).to.not.be.undefined; });
    it('38. render method', async () => { const el = await fixture(html `<nile-list-item></nile-list-item>`); expect(el.render).to.be.a('function'); });
    it('39. shadowRoot host', async () => { const el = await fixture(html `<nile-list-item></nile-list-item>`); expect(el.shadowRoot.host).to.equal(el); });
    it('40. class attr', async () => { const el = await fixture(html `<nile-list-item class="li"></nile-list-item>`); expect(el.classList.contains('li')).to.be.true; });
    it('41. id attr', async () => { const el = await fixture(html `<nile-list-item id="li1"></nile-list-item>`); expect(el.id).to.equal('li1'); });
    it('42. hidden', async () => { const el = await fixture(html `<nile-list-item hidden></nile-list-item>`); expect(el.hidden).to.be.true; });
    it('43. nodeType', async () => { const el = await fixture(html `<nile-list-item></nile-list-item>`); expect(el.nodeType).to.equal(1); });
    it('44. localName', async () => { const el = await fixture(html `<nile-list-item></nile-list-item>`); expect(el.localName).to.equal('nile-list-item'); });
    it('45. namespaceURI', async () => { const el = await fixture(html `<nile-list-item></nile-list-item>`); expect(el.namespaceURI).to.equal('http://www.w3.org/1999/xhtml'); });
    it('46. ownerDocument', async () => { const el = await fixture(html `<nile-list-item></nile-list-item>`); expect(el.ownerDocument).to.equal(document); });
    it('47. dynamic heading', async () => { const el = await fixture(html `<nile-list-item></nile-list-item>`); el.heading = 'New Title'; await el.updateComplete; expect(el.shadowRoot.textContent).to.contain('New Title'); });
    it('48. dynamic subHeading', async () => { const el = await fixture(html `<nile-list-item heading="T"></nile-list-item>`); el.subHeading = 'New Sub'; await el.updateComplete; expect(el.shadowRoot.textContent).to.contain('New Sub'); });
    it('49. dynamic iconName', async () => { const el = await fixture(html `<nile-list-item></nile-list-item>`); el.iconName = 'info'; await el.updateComplete; expect(el.shadowRoot.querySelector('nile-icon')).to.exist; });
    it('50. multiple instances', async () => { const c = await fixture(html `<div><nile-list-item></nile-list-item><nile-list-item></nile-list-item></div>`); expect(c.querySelectorAll('nile-list-item').length).to.equal(2); });
    it('51. parent-child', async () => { const c = await fixture(html `<div><nile-list-item></nile-list-item></div>`); expect(c.querySelector('nile-list-item').parentElement).to.equal(c); });
    it('52. createElement', async () => { const el = document.createElement('nile-list-item'); document.body.appendChild(el); await el.updateComplete; expect(el.shadowRoot).to.not.be.null; document.body.removeChild(el); });
    it('53. dataset', async () => { const el = await fixture(html `<nile-list-item data-idx="0"></nile-list-item>`); expect(el.dataset.idx).to.equal('0'); });
    it('54. classList add', async () => { const el = await fixture(html `<nile-list-item></nile-list-item>`); el.classList.add('z'); expect(el.classList.contains('z')).to.be.true; });
    it('55. getBoundingClientRect', async () => { const el = await fixture(html `<nile-list-item></nile-list-item>`); expect(el.getBoundingClientRect()).to.exist; });
    it('56. no form', async () => { const el = await fixture(html `<nile-list-item></nile-list-item>`); expect(el.shadowRoot.querySelector('form')).to.be.null; });
    it('57. no input', async () => { const el = await fixture(html `<nile-list-item></nile-list-item>`); expect(el.shadowRoot.querySelector('input')).to.be.null; });
    it('58. no button', async () => { const el = await fixture(html `<nile-list-item></nile-list-item>`); expect(el.shadowRoot.querySelector('button')).to.be.null; });
    it('59. no anchor', async () => { const el = await fixture(html `<nile-list-item></nile-list-item>`); expect(el.shadowRoot.querySelector('a')).to.be.null; });
    it('60. style attr', async () => { const el = await fixture(html `<nile-list-item style="color:red"></nile-list-item>`); expect(el.style.color).to.equal('red'); });
    it('61. data attr', async () => { const el = await fixture(html `<nile-list-item data-x="1"></nile-list-item>`); expect(el.getAttribute('data-x')).to.equal('1'); });
    it('62. aria-label', async () => { const el = await fixture(html `<nile-list-item aria-label="Item"></nile-list-item>`); expect(el.getAttribute('aria-label')).to.equal('Item'); });
    it('63. role', async () => { const el = await fixture(html `<nile-list-item role="listitem"></nile-list-item>`); expect(el.getAttribute('role')).to.equal('listitem'); });
    it('64. dir', async () => { const el = await fixture(html `<nile-list-item dir="rtl"></nile-list-item>`); expect(el.dir).to.equal('rtl'); });
    it('65. title attr', async () => { const el = await fixture(html `<nile-list-item title="LI"></nile-list-item>`); expect(el.title).to.equal('LI'); });
    it('66. lang attr', async () => { const el = await fixture(html `<nile-list-item lang="en"></nile-list-item>`); expect(el.lang).to.equal('en'); });
    it('67. tabindex', async () => { const el = await fixture(html `<nile-list-item tabindex="0"></nile-list-item>`); expect(el.getAttribute('tabindex')).to.equal('0'); });
    it('68. requestUpdate', async () => { const el = await fixture(html `<nile-list-item></nile-list-item>`); el.requestUpdate(); await el.updateComplete; expect(el.shadowRoot).to.not.be.null; });
    it('69. shadow childNodes', async () => { const el = await fixture(html `<nile-list-item></nile-list-item>`); expect(el.shadowRoot.childNodes.length).to.be.greaterThan(0); });
    it('70. scrollIntoView', async () => { const el = await fixture(html `<nile-list-item></nile-list-item>`); expect(el.scrollIntoView).to.be.a('function'); });
    it('71. focus method', async () => { const el = await fixture(html `<nile-list-item></nile-list-item>`); expect(el.focus).to.be.a('function'); });
    it('72. blur method', async () => { const el = await fixture(html `<nile-list-item></nile-list-item>`); expect(el.blur).to.be.a('function'); });
    it('73. class toggle', async () => { const el = await fixture(html `<nile-list-item></nile-list-item>`); el.classList.toggle('a'); expect(el.classList.contains('a')).to.be.true; });
    it('74. toggle hidden', async () => { const el = await fixture(html `<nile-list-item></nile-list-item>`); el.hidden = true; expect(el.hidden).to.be.true; });
    it('75. dispatchCustomEvent', async () => { const el = await fixture(html `<nile-list-item></nile-list-item>`); let d; el.addEventListener('t', ((e) => { d = e.detail; })); el.dispatchEvent(new CustomEvent('t', { detail: 'x' })); expect(d).to.equal('x'); });
    it('76. nested in div', async () => { const c = await fixture(html `<div><nile-list-item></nile-list-item></div>`); expect(c.querySelector('nile-list-item')).to.exist; });
    it('77. no table', async () => { const el = await fixture(html `<nile-list-item></nile-list-item>`); expect(el.shadowRoot.querySelector('table')).to.be.null; });
    it('78. no canvas', async () => { const el = await fixture(html `<nile-list-item></nile-list-item>`); expect(el.shadowRoot.querySelector('canvas')).to.be.null; });
    it('79. no video', async () => { const el = await fixture(html `<nile-list-item></nile-list-item>`); expect(el.shadowRoot.querySelector('video')).to.be.null; });
    it('80. no audio', async () => { const el = await fixture(html `<nile-list-item></nile-list-item>`); expect(el.shadowRoot.querySelector('audio')).to.be.null; });
    it('81. no nav', async () => { const el = await fixture(html `<nile-list-item></nile-list-item>`); expect(el.shadowRoot.querySelector('nav')).to.be.null; });
    it('82. no aside', async () => { const el = await fixture(html `<nile-list-item></nile-list-item>`); expect(el.shadowRoot.querySelector('aside')).to.be.null; });
    it('83. no textarea', async () => { const el = await fixture(html `<nile-list-item></nile-list-item>`); expect(el.shadowRoot.querySelector('textarea')).to.be.null; });
    it('84. no select element', async () => { const el = await fixture(html `<nile-list-item></nile-list-item>`); expect(el.shadowRoot.querySelector('select')).to.be.null; });
    it('85. setAttribute data', async () => { const el = await fixture(html `<nile-list-item></nile-list-item>`); el.setAttribute('data-test', '1'); expect(el.dataset.test).to.equal('1'); });
    it('86. removeAttribute hidden', async () => { const el = await fixture(html `<nile-list-item hidden></nile-list-item>`); el.removeAttribute('hidden'); expect(el.hidden).to.be.false; });
    it('87. setAttribute class', async () => { const el = await fixture(html `<nile-list-item></nile-list-item>`); el.setAttribute('class', 'test'); expect(el.classList.contains('test')).to.be.true; });
    it('88. aria-describedby', async () => { const el = await fixture(html `<nile-list-item aria-describedby="d"></nile-list-item>`); expect(el.getAttribute('aria-describedby')).to.equal('d'); });
    it('89. multiple re-renders', async () => { const el = await fixture(html `<nile-list-item></nile-list-item>`); for (let i = 0; i < 3; i++) {
        el.requestUpdate();
        await el.updateComplete;
    } expect(el.shadowRoot).to.not.be.null; });
    it('90. heading slot part', async () => { const el = await fixture(html `<nile-list-item heading="T"></nile-list-item>`); expect(el.shadowRoot.querySelector('[part="heading"]')).to.exist; });
    it('91. subheading slot part', async () => { const el = await fixture(html `<nile-list-item heading="T" sub-heading="S"></nile-list-item>`); expect(el.shadowRoot.querySelector('[part="subheading"]')).to.exist; });
    it('92. no heading without heading prop', async () => { const el = await fixture(html `<nile-list-item></nile-list-item>`); expect(el.shadowRoot.querySelector('.heading')).to.be.null; });
    it('93. no subheading without sub-heading prop', async () => { const el = await fixture(html `<nile-list-item></nile-list-item>`); expect(el.shadowRoot.querySelector('.subheading')).to.be.null; });
    it('94. no ul', async () => { const el = await fixture(html `<nile-list-item></nile-list-item>`); expect(el.shadowRoot.querySelector('ul')).to.be.null; });
    it('95. no pre', async () => { const el = await fixture(html `<nile-list-item></nile-list-item>`); expect(el.shadowRoot.querySelector('pre')).to.be.null; });
    it('96. no code', async () => { const el = await fixture(html `<nile-list-item></nile-list-item>`); expect(el.shadowRoot.querySelector('code')).to.be.null; });
    it('97. no svg', async () => { const el = await fixture(html `<nile-list-item></nile-list-item>`); expect(el.shadowRoot.querySelector('svg')).to.be.null; });
    it('98. no img', async () => { const el = await fixture(html `<nile-list-item></nile-list-item>`); expect(el.shadowRoot.querySelector('img')).to.be.null; });
    it('99. slotted suffix content', async () => { const el = await fixture(html `<nile-list-item><span slot="suffix">Suffix</span></nile-list-item>`); expect(el.querySelector('[slot="suffix"]')).to.exist; });
    it('100. full integration', async () => { const el = await fixture(html `<nile-list-item icon-name="info" icon-size="20" heading="Title" sub-heading="Subtitle" class="li" id="li1">Content</nile-list-item>`); expect(el.iconName).to.equal('info'); expect(el.iconSize).to.equal(20); expect(el.heading).to.equal('Title'); expect(el.subHeading).to.equal('Subtitle'); expect(el.id).to.equal('li1'); expect(el.shadowRoot.querySelector('nile-icon')).to.exist; expect(el.shadowRoot.textContent).to.contain('Title'); });
});
//# sourceMappingURL=nile-list-item.test.js.map