Skip to content

Commit

Permalink
dev(storybook): temporary logging to fix CORS
Browse files Browse the repository at this point in the history
  • Loading branch information
scottrippey committed Sep 27, 2023
1 parent 192c175 commit 016a8f5
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions packages/nextjs/components/Search.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,25 @@ type Story = StoryObj<typeof Search>;
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 = {
// name: `WithSearchTerm (TEMP: CURRENT HOST: ${window.location.host})`,

async play({ canvasElement, step }) {
const ui = wrap(canvasElement);
await step(`CURRENT HOST: ${window.location.host}`, async () => {
await userEvent.type(ui.searchbox, window.location.host);
expect(ui.searchbox).toHaveValue("WHAT IS THE CURRENT DOMAIN FOR THE LOVE?");
});
},
};

export const WithSearchTerm: Story = {
async play({ canvasElement, step }) {
const ui = wrap(canvasElement);
Expand Down

0 comments on commit 016a8f5

Please sign in to comment.