Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

fix(storybook): disable onboarding for storybook (#5351)

Peng Xiaobfbdde212fd8
diff --git a/tests/storybook/.storybook/preview.tsx b/tests/storybook/.storybook/preview.tsx
index 480b31c23e..b72c97f4b1 100644
--- a/tests/storybook/.storybook/preview.tsx
+++ b/tests/storybook/.storybook/preview.tsx
@@ -107,6 +107,13 @@ const ThemeChange = () => {
};
localStorage.clear();
+
+// do not show onboarding for storybook
+window.localStorage.setItem(
+ 'app_config',
+ '{"onBoarding":false, "dismissWorkspaceGuideModal":true}'
+);
+
const store = createStore();
_setCurrentStore(store);
setup();