Skip to content

Commit

Permalink
test(dom): ensure component gets created in dom #69
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanjones243 committed Mar 20, 2024
1 parent eb801a4 commit 00e7f01
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/auro-popover.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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`
<auro-popover>
Expand Down

0 comments on commit 00e7f01

Please sign in to comment.