Skip to content

Commit

Permalink
Make a purposefull error
Browse files Browse the repository at this point in the history
  • Loading branch information
kasperpeulen committed Aug 15, 2024
1 parent 1e8714b commit b00bcde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/note/[id]/page.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export const LogoutShouldDeleteCookie: Story = {
await expect(cookies().get(userCookieKey)?.value).toContain('storybookjs')
await userEvent.click(await canvas.findByRole('button', { name: 'logout' }))
await expectRedirect('/')
await expect(cookies().get(userCookieKey)).toBeUndefined()
await expect(cookies().get(userCookieKey)).toBeDefined()

Check failure on line 86 in app/note/[id]/page.stories.tsx

View workflow job for this annotation

GitHub Actions / chromatic

app/note/[id]/page.stories.tsx > LogoutShouldDeleteCookie

AssertionError: Click to debug the error directly in Storybook: http://localhost:6006/?path=/story/app-note-id-page--logout-should-delete-cookie&addonPanel=storybook/interactions/panel expected undefined not to be undefined ❯ play app/note/[id]/page.stories.tsx:86:47 ❯ ../../../../../node_modules/.vite/deps/@storybook_experimental-addon-vitest_internal_test-utils.js:26:80
},
}

Expand Down

0 comments on commit b00bcde

Please sign in to comment.