import{newE2EPage}from"@stencil/core/testing";describe("sc-dropdown",(()=>{it("renders",(async()=>{const t=await newE2EPage();await t.setContent("<sc-dropdown></sc-dropdown>");const e=await t.find("sc-dropdown");expect(e).toHaveClass("hydrated")})),it("can open and close",(async()=>{const t=await newE2EPage();await t.setContent('\n    <sc-dropdown>\n        <sc-button slot="trigger" caret>Click Here</sc-button>\n        <div>Test</div>\n    </sc-dropdown>');const e=await t.find("sc-dropdown >>> .dropdown__panel");let a=await e.isVisible();expect(a).toBe(!1),await t.click("sc-button"),await t.waitForChanges(),a=await e.isVisible(),expect(a).toBe(!0),await t.click("body"),a=await e.isVisible(),expect(a).toBe(!1)}))}));