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