Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sanitize target and reference urls and wait for Storybook selector before running test #13

Merged
merged 1 commit into from
Dec 18, 2021

Conversation

yannbf
Copy link
Member

@yannbf yannbf commented Dec 18, 2021

If the user passes incorrect urls for TARGET_URL and REFERENCE_URL like: sb.com (without protocol) and sb.com/iframe.html, the lib will sanitize it.

In addition to that, I added a waitForSelector command that waits for 10 seconds to get the #root element from Storybook, if it fails, it will output this (disregard the 60 seconds, I changed to 10):

image

📦 Published PR as canary version: 0.0.1-canary.13.6742668.0

✨ Test out this PR locally via:

npm install @storybook/test-runner@0.0.1-canary.13.6742668.0
# or 
yarn add @storybook/test-runner@0.0.1-canary.13.6742668.0

@yannbf
Copy link
Member Author

yannbf commented Dec 18, 2021

self merging @shilman

@yannbf yannbf merged commit 6742668 into feat/prototype Dec 18, 2021
@github-actions github-actions bot mentioned this pull request Jan 6, 2022
@yannbf yannbf deleted the feat/sanitize-url branch August 23, 2022 16:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant