Skip to content

Commit

Permalink
fix: update feedback message in timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
yannbf committed Jan 12, 2022
1 parent 7025cda commit eabf5e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion playwright/custom-environment.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ class CustomEnvironment extends PlaywrightEnvironment {
try {
await __waitForElement('#root');
} catch(err) {
const message = \`Timed out waiting for Storybook to load after 10 seconds. Are you sure the Storybook is running correctly in that URL?\n\n\nHTML: \${document.body.innerHTML}\`;
const message = \`Timed out waiting for Storybook to load after 10 seconds. Are you sure the Storybook is running correctly in that URL? Is the Storybook private (e.g. under authentication layers)?\n\n\nHTML: \${document.body.innerHTML}\`;
throw new StorybookTestRunnerError(storyId, hasPlayFn, message);
}
Expand Down

0 comments on commit eabf5e0

Please sign in to comment.