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