Skip to content

Commit

Permalink
Fix axe runs in Storybook 8.5
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinpalkovic committed Jan 28, 2025
1 parent 30d8924 commit 349c0dd
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 349c0dd

Please sign in to comment.