Skip to content

Commit

Permalink
Fixed regression introduced in storybookjs#14563.
Browse files Browse the repository at this point in the history
The regression prevented Axe tests from being run and instead the default snapshots were being used. This was due to a missing `return` statement that I overlooked in the original source because of the implicit return.
  • Loading branch information
Corey Vaillancourt committed May 21, 2021
1 parent ab3abaa commit 1bd3938
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/storyshots/storyshots-puppeteer/src/axeTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const axeTest = (customConfig: Partial<AxeConfig> = {}) => {
const config = { ...defaultAxeConfig, ...customConfig };
const { beforeAxeTest } = config;

puppeteerTest({
return puppeteerTest({
...config,
async testBody(page, options) {
const parameters = options.context.parameters.a11y;
Expand Down

0 comments on commit 1bd3938

Please sign in to comment.