import{h}from"@stencil/core";import{newSpecPage}from"@stencil/core/testing";import{ScOrderPassword}from"../sc-order-password";describe("sc-order-password",(()=>{it("renders",(async()=>{const o=await newSpecPage({components:[ScOrderPassword],html:"<sc-order-password></sc-order-password>"});expect(o.root).toMatchSnapshot()})),it("renders confirmation if provided",(async()=>{const o=await newSpecPage({components:[ScOrderPassword],template:()=>h("sc-order-password",{confirmation:!0,confirmationLabel:"Label",confirmationPlaceholder:"Placeholder",confirmationHelp:"Help"})});expect(o.root).toMatchSnapshot()})),it("does not render if logged in",(async()=>{const o=await newSpecPage({components:[ScOrderPassword],html:"<sc-order-password logged-in></sc-order-password>"});expect(o.root).toMatchSnapshot()}))}));