import { expect, fixture, html } from '@open-wc/testing';
import './nile-circular-progressbar';
describe('NileCircularProgressbar', () => {
    it('1. renders', async () => { const el = await fixture(html `<nile-circular-progressbar></nile-circular-progressbar>`); expect(el).to.exist; });
    it('2. shadow root', async () => { const el = await fixture(html `<nile-circular-progressbar></nile-circular-progressbar>`); expect(el.shadowRoot).to.not.be.null; });
    it('3. tag name', async () => { const el = await fixture(html `<nile-circular-progressbar></nile-circular-progressbar>`); expect(el.tagName.toLowerCase()).to.equal('nile-circular-progressbar'); });
    it('4. value defaults 0', async () => { const el = await fixture(html `<nile-circular-progressbar></nile-circular-progressbar>`); expect(el.value).to.equal(0); });
    it('5. size defaults 40', async () => { const el = await fixture(html `<nile-circular-progressbar></nile-circular-progressbar>`); expect(el.size).to.equal(40); });
    it('6. content undefined', async () => { const el = await fixture(html `<nile-circular-progressbar></nile-circular-progressbar>`); expect(el.content).to.be.undefined; });
    it('7. svg element', async () => { const el = await fixture(html `<nile-circular-progressbar></nile-circular-progressbar>`); expect(el.shadowRoot.querySelector('svg')).to.exist; });
    it('8. track circle', async () => { const el = await fixture(html `<nile-circular-progressbar></nile-circular-progressbar>`); expect(el.shadowRoot.querySelector('.track')).to.exist; });
    it('9. progress circle', async () => { const el = await fixture(html `<nile-circular-progressbar></nile-circular-progressbar>`); expect(el.shadowRoot.querySelector('.progress')).to.exist; });
    it('10. text element', async () => { const el = await fixture(html `<nile-circular-progressbar></nile-circular-progressbar>`); expect(el.shadowRoot.querySelector('text')).to.exist; });
    it('11. circle__text class', async () => { const el = await fixture(html `<nile-circular-progressbar></nile-circular-progressbar>`); expect(el.shadowRoot.querySelector('.circle__text')).to.exist; });
    it('12. displays 0%', async () => { const el = await fixture(html `<nile-circular-progressbar></nile-circular-progressbar>`); expect(el.shadowRoot.textContent).to.contain('0%'); });
    it('13. set value 50', async () => { const el = await fixture(html `<nile-circular-progressbar value="50"></nile-circular-progressbar>`); expect(el.value).to.equal(50); });
    it('14. displays 50%', async () => { const el = await fixture(html `<nile-circular-progressbar value="50"></nile-circular-progressbar>`); expect(el.shadowRoot.textContent).to.contain('50%'); });
    it('15. set size', async () => { const el = await fixture(html `<nile-circular-progressbar size="80"></nile-circular-progressbar>`); expect(el.size).to.equal(80); });
    it('16. svg width matches size', async () => { const el = await fixture(html `<nile-circular-progressbar size="80"></nile-circular-progressbar>`); const svg = el.shadowRoot.querySelector('svg'); expect(svg.getAttribute('width')).to.equal('80'); });
    it('17. svg height matches size', async () => { const el = await fixture(html `<nile-circular-progressbar size="80"></nile-circular-progressbar>`); const svg = el.shadowRoot.querySelector('svg'); expect(svg.getAttribute('height')).to.equal('80'); });
    it('18. content property', async () => { const el = await fixture(html `<nile-circular-progressbar content="Done"></nile-circular-progressbar>`); expect(el.shadowRoot.textContent).to.contain('Done'); });
    it('19. content overrides percentage', async () => { const el = await fixture(html `<nile-circular-progressbar value="50" content="Half"></nile-circular-progressbar>`); expect(el.shadowRoot.textContent).to.contain('Half'); expect(el.shadowRoot.textContent).to.not.contain('50%'); });
    it('20. value reflects', async () => { const el = await fixture(html `<nile-circular-progressbar value="25"></nile-circular-progressbar>`); expect(el.hasAttribute('value')).to.be.true; });
    it('21. size reflects', async () => { const el = await fixture(html `<nile-circular-progressbar size="60"></nile-circular-progressbar>`); expect(el.hasAttribute('size')).to.be.true; });
    it('22. nile-complete at 100', async () => { const el = await fixture(html `<nile-circular-progressbar></nile-circular-progressbar>`); let fired = false; el.addEventListener('nile-complete', () => { fired = true; }); el.value = 100; await el.updateComplete; expect(fired).to.be.true; });
    it('23. no event at 50', async () => { const el = await fixture(html `<nile-circular-progressbar></nile-circular-progressbar>`); let fired = false; el.addEventListener('nile-complete', () => { fired = true; }); el.value = 50; await el.updateComplete; expect(fired).to.be.false; });
    it('24. two circles', async () => { const el = await fixture(html `<nile-circular-progressbar></nile-circular-progressbar>`); expect(el.shadowRoot.querySelectorAll('circle').length).to.equal(2); });
    it('25. text anchor middle', async () => { const el = await fixture(html `<nile-circular-progressbar></nile-circular-progressbar>`); const text = el.shadowRoot.querySelector('text'); expect(text.getAttribute('text-anchor')).to.equal('middle'); });
    it('26. has styles', async () => { expect((await import('./nile-circular-progressbar')).NileCircularProgressbar.styles).to.exist; });
    it('27. is defined', async () => { expect(customElements.get('nile-circular-progressbar')).to.exist; });
    it('28. shadow mode', async () => { const el = await fixture(html `<nile-circular-progressbar></nile-circular-progressbar>`); expect(el.shadowRoot.mode).to.equal('open'); });
    it('29. isConnected', async () => { const el = await fixture(html `<nile-circular-progressbar></nile-circular-progressbar>`); expect(el.isConnected).to.be.true; });
    it('30. removal', async () => { const el = await fixture(html `<nile-circular-progressbar></nile-circular-progressbar>`); el.remove(); expect(el.isConnected).to.be.false; });
    it('31. outerHTML', async () => { const el = await fixture(html `<nile-circular-progressbar></nile-circular-progressbar>`); expect(el.outerHTML).to.contain('nile-circular-progressbar'); });
    it('32. matches', async () => { const el = await fixture(html `<nile-circular-progressbar class="x"></nile-circular-progressbar>`); expect(el.matches('.x')).to.be.true; });
    it('33. closest', async () => { const el = await fixture(html `<nile-circular-progressbar></nile-circular-progressbar>`); expect(el.closest('nile-circular-progressbar')).to.equal(el); });
    it('34. cloneNode', async () => { const el = await fixture(html `<nile-circular-progressbar></nile-circular-progressbar>`); expect(el.cloneNode(true).tagName.toLowerCase()).to.equal('nile-circular-progressbar'); });
    it('35. dispatchEvent', async () => { const el = await fixture(html `<nile-circular-progressbar></nile-circular-progressbar>`); let f = false; el.addEventListener('c', () => (f = true)); el.dispatchEvent(new Event('c')); expect(f).to.be.true; });
    it('36. updateComplete', async () => { const el = await fixture(html `<nile-circular-progressbar></nile-circular-progressbar>`); const r = await el.updateComplete; expect(r).to.not.be.undefined; });
    it('37. render method', async () => { const el = await fixture(html `<nile-circular-progressbar></nile-circular-progressbar>`); expect(el.render).to.be.a('function'); });
    it('38. shadowRoot host', async () => { const el = await fixture(html `<nile-circular-progressbar></nile-circular-progressbar>`); expect(el.shadowRoot.host).to.equal(el); });
    it('39. class attr', async () => { const el = await fixture(html `<nile-circular-progressbar class="cp"></nile-circular-progressbar>`); expect(el.classList.contains('cp')).to.be.true; });
    it('40. id attr', async () => { const el = await fixture(html `<nile-circular-progressbar id="cp1"></nile-circular-progressbar>`); expect(el.id).to.equal('cp1'); });
    it('41. hidden', async () => { const el = await fixture(html `<nile-circular-progressbar hidden></nile-circular-progressbar>`); expect(el.hidden).to.be.true; });
    it('42. nodeType', async () => { const el = await fixture(html `<nile-circular-progressbar></nile-circular-progressbar>`); expect(el.nodeType).to.equal(1); });
    it('43. localName', async () => { const el = await fixture(html `<nile-circular-progressbar></nile-circular-progressbar>`); expect(el.localName).to.equal('nile-circular-progressbar'); });
    it('44. namespaceURI', async () => { const el = await fixture(html `<nile-circular-progressbar></nile-circular-progressbar>`); expect(el.namespaceURI).to.equal('http://www.w3.org/1999/xhtml'); });
    it('45. ownerDocument', async () => { const el = await fixture(html `<nile-circular-progressbar></nile-circular-progressbar>`); expect(el.ownerDocument).to.equal(document); });
    it('46. dynamic value update', async () => { const el = await fixture(html `<nile-circular-progressbar></nile-circular-progressbar>`); el.value = 75; await el.updateComplete; expect(el.shadowRoot.textContent).to.contain('75%'); });
    it('47. dynamic size update', async () => { const el = await fixture(html `<nile-circular-progressbar></nile-circular-progressbar>`); el.size = 100; await el.updateComplete; const svg = el.shadowRoot.querySelector('svg'); expect(svg.getAttribute('width')).to.equal('100'); });
    it('48. multiple instances', async () => { const c = await fixture(html `<div><nile-circular-progressbar></nile-circular-progressbar><nile-circular-progressbar></nile-circular-progressbar></div>`); expect(c.querySelectorAll('nile-circular-progressbar').length).to.equal(2); });
    it('49. parent-child', async () => { const c = await fixture(html `<div><nile-circular-progressbar></nile-circular-progressbar></div>`); expect(c.querySelector('nile-circular-progressbar').parentElement).to.equal(c); });
    it('50. createElement', async () => { const el = document.createElement('nile-circular-progressbar'); document.body.appendChild(el); await el.updateComplete; expect(el.shadowRoot).to.not.be.null; document.body.removeChild(el); });
    it('51. dataset', async () => { const el = await fixture(html `<nile-circular-progressbar data-idx="0"></nile-circular-progressbar>`); expect(el.dataset.idx).to.equal('0'); });
    it('52. classList add', async () => { const el = await fixture(html `<nile-circular-progressbar></nile-circular-progressbar>`); el.classList.add('z'); expect(el.classList.contains('z')).to.be.true; });
    it('53. getBoundingClientRect', async () => { const el = await fixture(html `<nile-circular-progressbar></nile-circular-progressbar>`); expect(el.getBoundingClientRect()).to.exist; });
    it('54. no form', async () => { const el = await fixture(html `<nile-circular-progressbar></nile-circular-progressbar>`); expect(el.shadowRoot.querySelector('form')).to.be.null; });
    it('55. no input', async () => { const el = await fixture(html `<nile-circular-progressbar></nile-circular-progressbar>`); expect(el.shadowRoot.querySelector('input')).to.be.null; });
    it('56. no button', async () => { const el = await fixture(html `<nile-circular-progressbar></nile-circular-progressbar>`); expect(el.shadowRoot.querySelector('button')).to.be.null; });
    it('57. no slot', async () => { const el = await fixture(html `<nile-circular-progressbar></nile-circular-progressbar>`); expect(el.shadowRoot.querySelector('slot')).to.be.null; });
    it('58. no anchor', async () => { const el = await fixture(html `<nile-circular-progressbar></nile-circular-progressbar>`); expect(el.shadowRoot.querySelector('a')).to.be.null; });
    it('59. no img', async () => { const el = await fixture(html `<nile-circular-progressbar></nile-circular-progressbar>`); expect(el.shadowRoot.querySelector('img')).to.be.null; });
    it('60. aria-label', async () => { const el = await fixture(html `<nile-circular-progressbar aria-label="Progress"></nile-circular-progressbar>`); expect(el.getAttribute('aria-label')).to.equal('Progress'); });
    it('61. role', async () => { const el = await fixture(html `<nile-circular-progressbar role="progressbar"></nile-circular-progressbar>`); expect(el.getAttribute('role')).to.equal('progressbar'); });
    it('62. dir', async () => { const el = await fixture(html `<nile-circular-progressbar dir="rtl"></nile-circular-progressbar>`); expect(el.dir).to.equal('rtl'); });
    it('63. style attr', async () => { const el = await fixture(html `<nile-circular-progressbar style="color:red"></nile-circular-progressbar>`); expect(el.style.color).to.equal('red'); });
    it('64. data attr', async () => { const el = await fixture(html `<nile-circular-progressbar data-x="1"></nile-circular-progressbar>`); expect(el.getAttribute('data-x')).to.equal('1'); });
    it('65. requestUpdate', async () => { const el = await fixture(html `<nile-circular-progressbar></nile-circular-progressbar>`); el.requestUpdate(); await el.updateComplete; expect(el.shadowRoot).to.not.be.null; });
    it('66. shadow childNodes', async () => { const el = await fixture(html `<nile-circular-progressbar></nile-circular-progressbar>`); expect(el.shadowRoot.childNodes.length).to.be.greaterThan(0); });
    it('67. scrollIntoView', async () => { const el = await fixture(html `<nile-circular-progressbar></nile-circular-progressbar>`); expect(el.scrollIntoView).to.be.a('function'); });
    it('68. focus method', async () => { const el = await fixture(html `<nile-circular-progressbar></nile-circular-progressbar>`); expect(el.focus).to.be.a('function'); });
    it('69. blur method', async () => { const el = await fixture(html `<nile-circular-progressbar></nile-circular-progressbar>`); expect(el.blur).to.be.a('function'); });
    it('70. title attr', async () => { const el = await fixture(html `<nile-circular-progressbar title="CP"></nile-circular-progressbar>`); expect(el.title).to.equal('CP'); });
    it('71. lang attr', async () => { const el = await fixture(html `<nile-circular-progressbar lang="en"></nile-circular-progressbar>`); expect(el.lang).to.equal('en'); });
    it('72. tabindex', async () => { const el = await fixture(html `<nile-circular-progressbar tabindex="0"></nile-circular-progressbar>`); expect(el.getAttribute('tabindex')).to.equal('0'); });
    it('73. class toggle', async () => { const el = await fixture(html `<nile-circular-progressbar></nile-circular-progressbar>`); el.classList.toggle('a'); expect(el.classList.contains('a')).to.be.true; });
    it('74. toggle hidden', async () => { const el = await fixture(html `<nile-circular-progressbar></nile-circular-progressbar>`); el.hidden = true; expect(el.hidden).to.be.true; });
    it('75. dispatchCustomEvent', async () => { const el = await fixture(html `<nile-circular-progressbar></nile-circular-progressbar>`); 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-circular-progressbar></nile-circular-progressbar></div>`); expect(c.querySelector('nile-circular-progressbar')).to.exist; });
    it('77. no table', async () => { const el = await fixture(html `<nile-circular-progressbar></nile-circular-progressbar>`); expect(el.shadowRoot.querySelector('table')).to.be.null; });
    it('78. no ul', async () => { const el = await fixture(html `<nile-circular-progressbar></nile-circular-progressbar>`); expect(el.shadowRoot.querySelector('ul')).to.be.null; });
    it('79. no canvas', async () => { const el = await fixture(html `<nile-circular-progressbar></nile-circular-progressbar>`); expect(el.shadowRoot.querySelector('canvas')).to.be.null; });
    it('80. no video', async () => { const el = await fixture(html `<nile-circular-progressbar></nile-circular-progressbar>`); expect(el.shadowRoot.querySelector('video')).to.be.null; });
    it('81. no audio', async () => { const el = await fixture(html `<nile-circular-progressbar></nile-circular-progressbar>`); expect(el.shadowRoot.querySelector('audio')).to.be.null; });
    it('82. no nav', async () => { const el = await fixture(html `<nile-circular-progressbar></nile-circular-progressbar>`); expect(el.shadowRoot.querySelector('nav')).to.be.null; });
    it('83. no aside', async () => { const el = await fixture(html `<nile-circular-progressbar></nile-circular-progressbar>`); expect(el.shadowRoot.querySelector('aside')).to.be.null; });
    it('84. no textarea', async () => { const el = await fixture(html `<nile-circular-progressbar></nile-circular-progressbar>`); expect(el.shadowRoot.querySelector('textarea')).to.be.null; });
    it('85. no select', async () => { const el = await fixture(html `<nile-circular-progressbar></nile-circular-progressbar>`); expect(el.shadowRoot.querySelector('select')).to.be.null; });
    it('86. no nile-icon', async () => { const el = await fixture(html `<nile-circular-progressbar></nile-circular-progressbar>`); expect(el.shadowRoot.querySelector('nile-icon')).to.be.null; });
    it('87. setAttribute data', async () => { const el = await fixture(html `<nile-circular-progressbar></nile-circular-progressbar>`); el.setAttribute('data-test', '1'); expect(el.dataset.test).to.equal('1'); });
    it('88. removeAttribute hidden', async () => { const el = await fixture(html `<nile-circular-progressbar hidden></nile-circular-progressbar>`); el.removeAttribute('hidden'); expect(el.hidden).to.be.false; });
    it('89. setAttribute class', async () => { const el = await fixture(html `<nile-circular-progressbar></nile-circular-progressbar>`); el.setAttribute('class', 'test'); expect(el.classList.contains('test')).to.be.true; });
    it('90. value 100 displays 100%', async () => { const el = await fixture(html `<nile-circular-progressbar value="100"></nile-circular-progressbar>`); expect(el.shadowRoot.textContent).to.contain('100%'); });
    it('91. circle has radius', async () => { const el = await fixture(html `<nile-circular-progressbar></nile-circular-progressbar>`); const circle = el.shadowRoot.querySelector('.track'); expect(circle.getAttribute('r')).to.exist; });
    it('92. circle has cx', async () => { const el = await fixture(html `<nile-circular-progressbar></nile-circular-progressbar>`); const circle = el.shadowRoot.querySelector('.track'); expect(circle.getAttribute('cx')).to.exist; });
    it('93. circle has cy', async () => { const el = await fixture(html `<nile-circular-progressbar></nile-circular-progressbar>`); const circle = el.shadowRoot.querySelector('.track'); expect(circle.getAttribute('cy')).to.exist; });
    it('94. text x 50%', async () => { const el = await fixture(html `<nile-circular-progressbar></nile-circular-progressbar>`); const text = el.shadowRoot.querySelector('text'); expect(text.getAttribute('x')).to.equal('50%'); });
    it('95. text y 53%', async () => { const el = await fixture(html `<nile-circular-progressbar></nile-circular-progressbar>`); const text = el.shadowRoot.querySelector('text'); expect(text.getAttribute('y')).to.equal('53%'); });
    it('96. aria-describedby', async () => { const el = await fixture(html `<nile-circular-progressbar aria-describedby="d"></nile-circular-progressbar>`); expect(el.getAttribute('aria-describedby')).to.equal('d'); });
    it('97. multiple re-renders', async () => { const el = await fixture(html `<nile-circular-progressbar></nile-circular-progressbar>`); for (let i = 0; i < 3; i++) {
        el.requestUpdate();
        await el.updateComplete;
    } expect(el.shadowRoot).to.not.be.null; });
    it('98. rapid value updates', async () => { const el = await fixture(html `<nile-circular-progressbar></nile-circular-progressbar>`); el.value = 25; await el.updateComplete; el.value = 50; await el.updateComplete; el.value = 75; await el.updateComplete; expect(el.shadowRoot.textContent).to.contain('75%'); });
    it('99. no div', async () => { const el = await fixture(html `<nile-circular-progressbar></nile-circular-progressbar>`); expect(el.shadowRoot.querySelector('div')).to.be.null; });
    it('100. full integration', async () => { const el = await fixture(html `<nile-circular-progressbar value="75" size="80" content="3/4" class="cp" id="cp1" role="progressbar"></nile-circular-progressbar>`); expect(el.value).to.equal(75); expect(el.size).to.equal(80); expect(el.content).to.equal('3/4'); expect(el.id).to.equal('cp1'); expect(el.shadowRoot.textContent).to.contain('3/4'); expect(el.shadowRoot.querySelector('svg')).to.exist; expect(el.shadowRoot.querySelectorAll('circle').length).to.equal(2); });
});
//# sourceMappingURL=nile-circular-progressbar.test.js.map