bug: emulate.userAgent
is not used in E2E Screenshot tests
#5459
Labels
Bug: Validated
This PR or Issue is verified to be a bug within Stencil
Prerequisites
Stencil Version
4.12.2-dev.1709767698.0a1aa6b
Current Behavior
The
emulate.userAgent
is ignored. The sample project should writeDark
,Default
,Condensed
andPresentation
to the console, but it writesMozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/116.0.5814.0 Safari/537.36
.Expected Behavior
In an earlier version (v3) the
emulate.userAgent
was used and we could generate different screenshots with different color/spacing themes.Is there a new way to do stuff like this? Or should it work this way?
System Info
Steps to Reproduce
Run
npm run test.screenshot
in the test repo.Check the console output.
Code Reproduction URL
https://github.com/mlechler/stencil-e2e-test-bug
Additional Information
No response
The text was updated successfully, but these errors were encountered: