import{newSpecPage}from"@stencil/core/testing";import{h}from"@stencil/core";import{PrestoSearchBarUi}from"../../ui/presto-search-bar-ui";describe("presto-search-bar-ui",(()=>{it("renders",(async()=>{const e=await newSpecPage({components:[PrestoSearchBarUi],template:()=>h("presto-search-bar-ui",null)});await e.waitForChanges(),expect(e.root).toMatchSnapshot()})),it("renders with placeholder",(async()=>{const e=await newSpecPage({components:[PrestoSearchBarUi],template:()=>h("presto-search-bar-ui",{placeholder:"Search"})});await e.waitForChanges(),expect(e.root).toMatchSnapshot()})),it("renders with a value",(async()=>{const e=await newSpecPage({components:[PrestoSearchBarUi],template:()=>h("presto-search-bar-ui",{value:"search term"})});await e.waitForChanges(),expect(e.root).toMatchSnapshot()})),it("renders with arrow controls",(async()=>{const e=await newSpecPage({components:[PrestoSearchBarUi],template:()=>h("presto-search-bar-ui",{hasNavigation:!0})});await e.waitForChanges(),expect(e.root).toMatchSnapshot()}))}));