Skip to content

Commit

Permalink
Merge pull request #3156 from markelog/goto
Browse files Browse the repository at this point in the history
Add 'waitUntil' option to puppeteer of storyshots
  • Loading branch information
Hypnosphi authored Mar 13, 2018
2 parents 4808845 + a658719 commit e87943f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/storyshots/src/test-body-image-snapshot.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export const imageSnapshot = ({

expect.assertions(1);
return page
.goto(url)
.goto(url, {"waitUntil" : "networkidle0"})
.catch(e => {
logger.error(
`ERROR WHILE CONNECTING TO ${url}, did you start or build the storybook first ? A storybook instance should be running or a static version should be built when using image snapshot feature.`,
Expand Down

0 comments on commit e87943f

Please sign in to comment.