diff --git a/packages/nextjs/components/Search.stories.tsx b/packages/nextjs/components/Search.stories.tsx index 41de3e1a..c05797cf 100644 --- a/packages/nextjs/components/Search.stories.tsx +++ b/packages/nextjs/components/Search.stories.tsx @@ -13,7 +13,14 @@ export default meta; type Story = StoryObj; -export const Default: Story = {}; +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 WithSearchTerm: Story = { async play({ canvasElement, step }) { diff --git a/packages/nextjs/package.json b/packages/nextjs/package.json index 7458188c..f5cf330f 100644 --- a/packages/nextjs/package.json +++ b/packages/nextjs/package.json @@ -17,7 +17,7 @@ "storybook": "storybook dev -p 6006", "storybook:build": "storybook build", "storybook:start": "test -d storybook-static || pnpm run storybook:build && http-server --port 6006 --silent true storybook-static", - "test:storybook": "test-storybook --verbose --maxWorkers 2", + "test:storybook": "test-storybook --verbose --maxWorkers 1", "test:storybook:start": "start-server-and-test 'storybook:start' 6006 'test:storybook'" }, "dependencies": {