Skip to content

How to test Desktop page with user flows? #13572

Answered by adamraine
ipadorusa asked this question in Q&A
Discussion options

You must be logged in to vote

Doing flow.navigate will use the default Lighthouse viewport settings (Moto G4) regardless of the viewport you set with puppeteer beforehand. You can use the desktop viewport by using the Lighthouse desktop config:

const config = require('lighthouse/lighthouse-core/config/desktop-config.js');
const flow = await startFlow(page, {config, name: 'open google'});

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@ipadorusa
Comment options

@BhaskarPhukan
Comment options

Answer selected by ipadorusa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants