Skip to content

Commit 7d2b8b3

Browse files
committed
Fix storybook failed tests
1 parent 3502a22 commit 7d2b8b3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

site/src/pages/WorkspacePage/WorkspaceTopbar.stories.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {
1010
MockUser,
1111
MockWorkspace,
1212
} from "testHelpers/entities";
13-
import { withDashboardProvider } from "testHelpers/storybook";
13+
import { withAuthProvider, withDashboardProvider } from "testHelpers/storybook";
1414
import { WorkspaceTopbar } from "./WorkspaceTopbar";
1515

1616
// We want a workspace without a deadline to not pollute the screenshot. Also
@@ -28,7 +28,7 @@ const baseWorkspace: Workspace = {
2828
const meta: Meta<typeof WorkspaceTopbar> = {
2929
title: "pages/WorkspacePage/WorkspaceTopbar",
3030
component: WorkspaceTopbar,
31-
decorators: [withDashboardProvider],
31+
decorators: [withAuthProvider, withDashboardProvider],
3232
args: {
3333
workspace: baseWorkspace,
3434
template: MockTemplate,
@@ -41,6 +41,7 @@ const meta: Meta<typeof WorkspaceTopbar> = {
4141
chromatic: {
4242
diffThreshold: 0.6,
4343
},
44+
user: MockUser,
4445
},
4546
};
4647

0 commit comments

Comments
 (0)