-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
chore(refactor:test): unify environment variables for setting headless modes #24499
base: develop
Are you sure you want to change the base?
Conversation
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
c01b4b2
to
0c81a88
Compare
switch(value.toLowerCase().trim()) { | ||
case 'false': | ||
case '0': | ||
case '': |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This single line could actually be removed as it's handled by the initial !value
check - but I also figure it doesn't hurt to be a bit overly explicit. Happy to remove if the redundancy disturbs anyone! ;)
db6c857
to
6811a05
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #24499 +/- ##
===========================================
- Coverage 65.71% 65.71% -0.00%
===========================================
Files 1368 1368
Lines 54388 54388
Branches 14150 14150
===========================================
- Hits 35739 35737 -2
- Misses 18649 18651 +2 ☔ View full report in Codecov by Sentry. |
d1ef1ec
to
627f9f5
Compare
627f9f5
to
db215f4
Compare
db215f4
to
adc1b9e
Compare
bed3a1e
to
229e998
Compare
…s mode - Three environment variables are now recognized: - `SELENIUM_HEADLESS`: Explicitly set headless mode for Selenium - `PLAYWRIGHT_HEADLESS`: Explicitly set headless mode for Playwright - `HEADLESS`: Set headless mode wherevere supported - More consistent parsing of boolean value - Behavior should be retained for all previously recognized values - Default is false, as previously
0f0e3af
to
47b7864
Compare
47b7864
to
4d907f5
Compare
Description
SELENIUM_HEADLESS
: Explicitly set headless mode for SeleniumPLAYWRIGHT_HEADLESS
: Explicitly set headless mode for PlaywrightHEADLESS
: Set headless mode wherevere supported"true"
(case-insensitive) ||"1"
=true
"false"
(case-insensitive) ||"0"
|| (any falsey value) =false
false
, as previouslyRelated issues
Manual testing steps
Any of the below format could be used:-
HEADLESS yarn test:e2e:single test/e2e/tests/settings/show-hex-data.spec.js --browser=chrome --debug --leave-running
HEADLESS=1 yarn test:e2e:single test/e2e/tests/settings/show-hex-data.spec.js --browser=chrome --debug --leave-running
SELENIUM_HEADLESS=1 yarn test:e2e:single test/e2e/tests/settings/show-hex-data.spec.js --browser=chrome --debug --leave-running
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist