user-flow
user-flow copied to clipboard
Puppeteer `BrowserOptions` overlaps with Lighthouse `Config`
To handle different device sizes we have different places to configure them:
- Lighthouse Config
- Puppeteer Browser
Lighthouse Config
const lighthouseConfig: Config = {
extends: 'lighthouse:default',
settings: {
formFactor: 'desktop',
screenEmulation: {
mobile: false,
width: 1350,
height: 940,
deviceScaleFactor: 1,
disabled: false
}
}
}
This setting applies to the browsers window not the viewport.
Puppeteer BrowserOptions
//
const browserOptions: BrowserOptions = {
defaultViewport: {
isMobile: false,
isLandscape: false,
width: 1350,
height: 940,
}
}
This setting applies to the Browsers viewport, not window.
This issue is slightly connected with #142