You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Configure lighthouse to run with custom throttling settings, mark the throttling method as devtools, mark the emulatedFormFactor as "none"
Run LH on [any url]
Load the report JSON into lighthouse-viewer
What is the current behaviour?
The network throttling summary is hardcoded to "Throttled Slow 4G network"
The device summary is hardcoded to "No emulation"
The device summary, is technically correct (emulated form factor set to none), but the other configuration options for emulatedFormFactor (mobile, desktop) will result in a hardcoded value of either "Emulated Nexus 5X" or "Emulated Desktop"
What is the expected behaviour?
Network throttling summary should describe the network settings used
The text was updated successfully, but these errors were encountered:
benschwarz
changed the title
HTML Report renderer incorrect labels for custom throttling
HTML Report renderer incorrect labels for custom throttling & device
Jan 17, 2019
you set config.throttlingMethod to provided but then you also set the rest of the config settings. in the report we can then construct the same sort of strings.. just with "(Provided)" or something... like:
We think it's a little weird that you are providing all the configuration for throttling but also telling LH to not use the config (except for creating this text string). But.. it's something.
We add config settings for you to provide those strings directly.
Maybe... providedDeviceString, providedNetworkThrottlingString, providedCPUThrottlingString and they just end up right there in the report area. Pretty explicit and kinda dirty but... you get control.
Provide the steps to reproduce
devtools
, mark theemulatedFormFactor
as "none"What is the current behaviour?
emulatedFormFactor
(mobile
,desktop
) will result in a hardcoded value of either "Emulated Nexus 5X" or "Emulated Desktop"What is the expected behaviour?
Environment Information
Reference:
renderer/util.js#getEmulationDescriptions
(Link)The text was updated successfully, but these errors were encountered: