We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 012a7e3 commit 5a830c7Copy full SHA for 5a830c7
packages/lib/src/header/Header.stories.tsx
@@ -233,3 +233,13 @@ export const Responsive: Story = {
233
await canvas.findByText("Bottom content button");
234
},
235
};
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