From 00e7f013271d716d4ca4e10abd47fa40ae51879f Mon Sep 17 00:00:00 2001 From: Jordan Jones Date: Wed, 20 Mar 2024 12:17:55 -0700 Subject: [PATCH] test(dom): ensure component gets created in dom #69 --- test/auro-popover.test.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/auro-popover.test.js b/test/auro-popover.test.js index 4936475..55dcc4c 100644 --- a/test/auro-popover.test.js +++ b/test/auro-popover.test.js @@ -18,6 +18,13 @@ describe('auro-popover', () => { await expect(el).to.be.true; }); + it('web component is successfully created in the document', async () => { + // This test fails when attributes are put onto the component before it is attached to the DOM + const el = document.createElement('auro-popover'); + + await expect(el.localName).to.equal('auro-popover'); + }); + it('finds trigger in slot', async () => { const el = await fixture(html`