diff --git a/packages/nextjs/components/Search.stories.tsx b/packages/nextjs/components/Search.stories.tsx index 35bc747f..4412eb1a 100644 --- a/packages/nextjs/components/Search.stories.tsx +++ b/packages/nextjs/components/Search.stories.tsx @@ -16,12 +16,23 @@ type Story = StoryObj; export const Default: Story = { async play({ canvasElement, step }) { const ui = wrap(canvasElement); + await step("expect to see a search box", async () => { expect(ui.searchbox).toBeVisible(); }); }, }; +export const Debugging: Story = { + async play({ canvasElement, step }) { + const ui = wrap(canvasElement); + await step(`CURRENT HOST: ${window.location.href}`, async () => { + await userEvent.type(ui.searchbox, window.location.href); + expect(ui.searchbox).toHaveValue("WHAT IS THE CURRENT DOMAIN FOR THE LOVE?"); + }); + }, +}; + export const WithSearchTerm: Story = { async play({ canvasElement, step }) { const ui = wrap(canvasElement);