Skip to content

Commit f51df19

Browse files
committed
Revert "🤖 fix(test-runner): hide theme toggle in stories with play functions to avoid button conflicts"
This reverts commit b08a8b6.
1 parent b08a8b6 commit f51df19

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

‎.storybook/preview.tsx‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,12 +111,10 @@ const preview: Preview = {
111111
(Story, context) => {
112112
const mode = context.globals.theme as ThemeMode | undefined;
113113
const resolved = syncStorybookTheme(mode);
114-
// Hide toggle if story has a play function (interaction test) to avoid button conflicts
115-
const hasInteractionTest = !!context.parameters?.play;
116114
return (
117115
<ThemeProvider>
118116
<Story />
119-
{!mode && !isE2ETestEnv() && !hasInteractionTest && (
117+
{!mode && !isE2ETestEnv() && (
120118
<StorybookThemeToggle initialTheme={resolved} />
121119
)}
122120
</ThemeProvider>

0 commit comments

Comments
 (0)