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

fix: adds headless ternary to handle 'new', true, and false in a non-… #1511

Merged

Conversation

dgrebb
Copy link
Contributor

@dgrebb dgrebb commented Nov 22, 2023

…breaking fashion (#1485) (#1486)

Adapted from conversation in #1485 and @Neychok's initial PR in #1486.

Summary

Puppet and Playwright complain and pollute logs with warnings about "new headless mode". This reads the value set in backstop.json, or uses true if 'headless' is not set, or 'new', as a string. README updated with details.

Tests

Updated all ./test/configs with headless: 'new' and ran sanity tests. For example:

File: test/configs/backstop.json
46:   "engineOptions": {
47:     "args": ["--no-sandbox"],
48:     "headless": "new"
49:   },

Closes: #1485

…breaking fashion (garris#1485) (garris#1486)

Puppet and Playwright complain and pollute logs with warnings about "new headless mode". This reads the value set in backstop.json, or uses true if 'headless' is not set, or 'new', as a string. README updated with details.

Closes: garris#1485
@garris garris merged commit b67c169 into garris:master Nov 22, 2023
@garris
Copy link
Owner

garris commented Nov 22, 2023

Thank you @dgrebb!

@dgrebb dgrebb deleted the enhancement/1485-puppet-playwright-new-headless branch November 22, 2023 19:11
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.

Puppeteer old Headless deprecation warning
2 participants