import{newE2EPage}from"@stencil/core/testing";describe("sc-radio-group",(()=>{it("renders",(async()=>{const t=await newE2EPage();await t.setContent("<sc-radio-group></sc-radio-group>");const e=await t.find("sc-radio-group");expect(e).toHaveClass("hydrated")})),it("It can toggle between choices",(async()=>{const t=await newE2EPage();await t.setContent('\n    <sc-radio-group>\n      <sc-radio name="test" value="test" checked></sc-radio>\n      <sc-radio name="test" value="test-2"></sc-radio>\n    </sc-radio-group>\n    ');let e=await t.find('sc-radio[value="test"]'),a=await t.find('sc-radio[value="test-2"]');expect(e).toHaveAttribute("checked"),expect(a).not.toHaveAttribute("checked"),await a.click(),await t.waitForChanges(),e=await t.find('sc-radio[value="test"]'),a=await t.find('sc-radio[value="test-2"]'),expect(e).not.toHaveAttribute("checked"),expect(a).toHaveAttribute("checked")}))}));