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

Chromeless Support for Storyshots #3623

Closed
dan-kez opened this issue May 22, 2018 · 9 comments
Closed

Chromeless Support for Storyshots #3623

dan-kez opened this issue May 22, 2018 · 9 comments

Comments

@dan-kez
Copy link

dan-kez commented May 22, 2018

Work summary

The ability to use a different headless chrome tool to take screenshots. Specifically, Chromeless due to it's lambda support.

I'm happy to help with this endeavor.

Where to start

https://github.com/prismagraphql/chromeless - Has good docs for their api. My assumption is that based on a config value storyshots could determine whether to run puppeteer locally or use chromeless.

Acceptance criteria

The ability to initiate storyshots with a chromeless config (API Key, etc) so that users can run their screenshots in lambda.

@danielduan
Copy link
Member

If you can put together a PR, we'd be happy to take a look. Make sure you update our example Storybook to demonstrate and prove the functionality.

@igor-dv
Copy link
Member

igor-dv commented Jun 4, 2018

IMHO, image storyshots should've been separated to a separate addon (the shared code can be extracted, that's not a problem). Today when you want to bring addon-storyshots but use only regular snapshots you need to install all these puppeteer deps. I don't see how adding another headless browser thingy (even if it's useful) will simplify things here.

I think we need a refactoring that will bring some kind of separation like this:

  • addon-storyshots - the initial loose storyshots api
  • addon-storyshots-puppeteer-binding - extra api that brings puppeteer features
  • addon-storyshots-chromeless-binding - extra api that brings chromeless features

@Hypnosphi
Copy link
Member

Hypnosphi commented Jun 8, 2018

Heavy plus one to @igor-dv.

If we're going to do that, right now is the best time as we're approaching major release
@igor-dv would you do the splitting of addon-storyshots-puppeteer-binding?

@igor-dv
Copy link
Member

igor-dv commented Jun 8, 2018

Yes. Will work on it 👍

@Hypnosphi
Copy link
Member

Released as 4.0.0-alpha.10

@igor-dv
Copy link
Member

igor-dv commented Jun 28, 2018

This one was not releasd =)

@stale
Copy link

stale bot commented Jul 19, 2018

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!

@stale stale bot added the inactive label Jul 19, 2018
@stale
Copy link

stale bot commented Aug 18, 2018

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!

@stale stale bot closed this as completed Aug 18, 2018
@dan-kez
Copy link
Author

dan-kez commented Aug 19, 2018

Just wanted to chime in here and say that a chromeless adapter may not be necessary given that has recently been deprecated.

Thank you for all the awesome work on this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants