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

feat(screenshot): add launchOptionsArgs to be able to pass args for c… #446

Merged
merged 3 commits into from
Feb 18, 2023

Conversation

kdnk
Copy link
Contributor

@kdnk kdnk commented Feb 10, 2023

Description

Add capabilities to pass some args for captureWebsite (and Puppeteer).

Additional context

Puppeteer has a launchOptions, and we can pass them through caputre-website. https://github.com/sindresorhus/capture-website#im-getting-a-sandbox-related-error.
This launchOptions option is helpful if we have sandbox-related issues (mainly inside Docker).
But now, we cannot configure them via Histoire.

https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md#setting-up-chrome-linux-sandbox
https://github.com/sindresorhus/capture-website#im-getting-a-sandbox-related-error
reg-viz/storycap#23
reg-viz/storycap#495


What is the purpose of this pull request?

  • Bug fix
  • New Feature
  • Documentation update
  • Other

Before submitting the PR, please make sure you do the following

  • If it's a new feature, provide a convincing reason to add it. Ideally, you should open a suggestion issue first and have it approved before working on it.
  • Read the Contributing Guidelines.
  • Read the Pull Request Guidelines and follow the Commit Convention.
  • Check that there isn't already a PR that solves the problem the same way to avoid creating a duplicate.
  • Provide a description in this PR that addresses what the PR is solving, or reference the issue that it solves (e.g. fixes #123).
  • [ ] Ideally, include relevant tests that fail without this PR but pass with it. not test for screenshot.

@codesandbox
Copy link

codesandbox bot commented Feb 10, 2023

CodeSandbox logoCodeSandbox logo  Open in CodeSandbox Web Editor | VS Code | VS Code Insiders

@stackblitz
Copy link

stackblitz bot commented Feb 10, 2023

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@netlify
Copy link

netlify bot commented Feb 10, 2023

Deploy Preview for histoire-examples-svelte3 ready!

Name Link
🔨 Latest commit 7732476
🔍 Latest deploy log https://app.netlify.com/sites/histoire-examples-svelte3/deploys/63f0b9eb69626d000887911d
😎 Deploy Preview https://deploy-preview-446--histoire-examples-svelte3.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Feb 10, 2023

Deploy Preview for histoire-site ready!

Name Link
🔨 Latest commit 7732476
🔍 Latest deploy log https://app.netlify.com/sites/histoire-site/deploys/63f0b9ea69626d0008879111
😎 Deploy Preview https://deploy-preview-446--histoire-site.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Feb 10, 2023

Deploy Preview for histoire-controls ready!

Name Link
🔨 Latest commit 7732476
🔍 Latest deploy log https://app.netlify.com/sites/histoire-controls/deploys/63f0b9eb69626d0008879118
😎 Deploy Preview https://deploy-preview-446--histoire-controls.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Feb 10, 2023

Deploy Preview for histoire-examples-vue3 ready!

Name Link
🔨 Latest commit 7732476
🔍 Latest deploy log https://app.netlify.com/sites/histoire-examples-vue3/deploys/63f0b9eb8cd327000859f1ac
😎 Deploy Preview https://deploy-preview-446--histoire-examples-vue3.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

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

2 participants