Storybook: How to run multiple storyshots?

Created on 3 Jul 2020  路  4Comments  路  Source: storybookjs/storybook

Describe the bug
A clear and concise description of what the bug is.

To Reproduce

  1. Setup several storyshot tests with initStoryShots()
  2. Run them and get the warning below

Expected behavior
No warning

Code snippets
console.warn Unexpected loaded state. Did you callload` twice?

  4 | const storybookUrl = 'http://localhost:9000';
  5 | 
> 6 | initStoryshots({
    | ^
  7 |       suite: 'A11y checks',
  8 |       test: axeTest({ storybookUrl }),
  9 | });

`
System:
Environment Info:

System:
OS: macOS 10.15.5
CPU: (8) x64 Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz
Binaries:
Node: 14.1.0 - /usr/local/bin/node
Yarn: 1.22.4 - /usr/local/bin/yarn
npm: 6.14.4 - /usr/local/bin/npm
Browsers:
Chrome: 83.0.4103.116
Edge: 83.0.478.58
Firefox: 74.0
Safari: 13.1.1
npmPackages:
@storybook/addon-a11y: ^6.0.0-beta.38 => 6.0.0-beta.39
@storybook/addon-controls: ^6.0.0-beta.15 => 6.0.0-beta.15
@storybook/addon-docs: ^6.0.0-beta.38 => 6.0.0-beta.39
@storybook/addon-jest: ^5.3.19 => 5.3.19
@storybook/addon-knobs: ^6.0.0-beta.38 => 6.0.0-beta.39
@storybook/addon-links: ^6.0.0-beta.38 => 6.0.0-beta.39
@storybook/addon-storyshots: ^6.0.0-beta.38 => 6.0.0-beta.39
@storybook/addon-storyshots-puppeteer: ^5.3.19 => 5.3.19
@storybook/addon-storysource: ^6.0.0-beta.38 => 6.0.0-beta.39
@storybook/addon-viewport: ^6.0.0-beta.38 => 6.0.0-beta.39
@storybook/preset-scss: ^1.0.2 => 1.0.2
@storybook/react: ^6.0.0-beta.38 => 6.0.0-beta.39

storyshots inactive question / support

Most helpful comment

I'm having the same issue currently with the latest storyshots/storybook 6.0.21

All 4 comments

Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks!

Hey there, it's me again! I am going close this issue to help our maintainers focus on the current development roadmap instead. If the issue mentioned is still a concern, please open a new ticket and mention this old one. Cheers and thanks for using Storybook!

I'm having the same issue currently with the latest storyshots/storybook 6.0.21

dupe to #10768

Was this page helpful?
0 / 5 - 0 ratings

Related issues

xogeny picture xogeny  路  3Comments

rpersaud picture rpersaud  路  3Comments

levithomason picture levithomason  路  3Comments

miljan-aleksic picture miljan-aleksic  路  3Comments

zvictor picture zvictor  路  3Comments