Skip to content

Commit

Permalink
Merge pull request #536 from storybookjs/valentin/fix-compat-with-sb-8.5
Browse files Browse the repository at this point in the history
Fix a11y compatibility with Storybook 8.5 and above
  • Loading branch information
JReinhold authored Feb 17, 2025
2 parents 30d8924 + 349c0dd commit 18e4574
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/setup-page-script.ts
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,14 @@ async function __test(storyId: string): Promise<any> {
channel.on(eventName, listener);
});

channel.emit('updateGlobals', {
globals: {
a11y: {
manual: true,
},
},
});

channel.emit('setCurrentStory', { storyId, viewMode: TEST_RUNNER_VIEW_MODE });
});
}
Expand Down

0 comments on commit 18e4574

Please sign in to comment.