Skip to content

Commit 5a830c7

Browse files
Add open search bar story to header stories
1 parent 012a7e3 commit 5a830c7

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

packages/lib/src/header/Header.stories.tsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,3 +233,13 @@ export const Responsive: Story = {
233233
await canvas.findByText("Bottom content button");
234234
},
235235
};
236+
237+
export const OpenSearchBar: Story = {
238+
render: HeaderInLayout,
239+
play: async ({ canvasElement }) => {
240+
const canvas = within(canvasElement);
241+
const searchButton = canvas.getByRole("button", { name: "Search" });
242+
await userEvent.click(searchButton);
243+
await canvas.findByPlaceholderText("Search...");
244+
},
245+
};

0 commit comments

Comments
 (0)