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

Make headless mode work more reliably #49

Merged
merged 1 commit into from
Aug 8, 2020

Conversation

eschaefer
Copy link
Contributor

@eschaefer eschaefer commented Aug 6, 2020

Description

Running this in the environment of Github Actions, I need the headless mode for puppeteer. Both locally and on Github Actions, setting headless: true results in the first step of the login form never completing. When headless is false, it's fine.

This PR adds some headers to the page, which helps Google to render the correct page contents on the first step of the signup flow. Apparently different content is rendered for headless browsers if the correct headers are not present.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Related Issue

checkly/puppeteer-examples#36

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

Checklist:

  • I have updated the documentation (if required).
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • I added a picture of a cute animal cause it's fun

@eschaefer eschaefer marked this pull request as ready for review August 6, 2020 16:44
@lirantal lirantal self-requested a review August 8, 2020 10:30
@lirantal lirantal added the enhancement New feature or request label Aug 8, 2020
@lirantal lirantal merged commit 65cb0e9 into lirantal:master Aug 8, 2020
@lirantal
Copy link
Owner

lirantal commented Aug 8, 2020

🎉 This PR is included in version 1.4.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants