import{newE2EPage}from"@stencil/core/testing";describe("sc-switch",(()=>{let t,e,a;const c="sc-switch";beforeEach((async()=>{t=await newE2EPage(),await t.setContent(`<${c}></${c}>`),a=await t.find(`${c} >>> .switch`),e=await t.find(`${c} >>> input`)})),it("renders",(async()=>{const t=await newE2EPage();await t.setContent("<sc-switch></sc-switch>");const e=await t.find("sc-switch");expect(e).toHaveClass("hydrated")})),it("Can be checked",(async()=>{expect(a).not.toHaveClass("switch--checked"),expect(a).not.toHaveProperty("checked"),expect(await e.getProperty("checked")).toBeFalsy(),await t.$eval(c,(t=>{t.checked=!0})),await t.waitForChanges(),a=await t.find(`${c} >>> .switch`),e=await t.find(`${c} >>> input`),expect(a).toHaveClass("switch--checked"),expect(await e.getProperty("checked")).toBeTruthy()}))}));