Skip to content

Properly test using desktop preset#36

Merged
chosak merged 1 commit intomainfrom
fix/desktop-testing
Sep 1, 2021
Merged

Properly test using desktop preset#36
chosak merged 1 commit intomainfrom
fix/desktop-testing

Conversation

@chosak
Copy link
Copy Markdown
Member

@chosak chosak commented Aug 31, 2021

In the most recent versions of Lighthouse, the configuration settings we were using for desktop testing no longer work. Instead of using formFactor and screenEmulation, we should use the "desktop" preset.

This commit makes that change which properly tests using a desktop form factor; this can be confirmed by looking at the (small) screenshots included as part of a Lighthouse report.

Before (incorrectly testing using mobile) Now (correctly testing using desktop)
image image

With this change, our desktop Performance scores now are in the 90s, which is more consistent with how things work when you run from Chrome developer tools.

image

In the most recent versions of Lighthouse, the configuration settings
we were using for desktop testing no longer work. Instead of using
formFactor and screenEmulation, we should use the "desktop" preset.

This commit makes that change which properly tests using a desktop form
factor; this can be confirmed by looking at the (small) screenshots
included as part of a Lighthouse report.

With this change, our desktop Performance scores now are in the 90s,
which is more consistent with how things work when you run from Chrome
developer tools.
@chosak chosak requested a review from anselmbradford August 31, 2021 16:44
Comment thread lighthouserc.js
settings: {
formFactor: mobile ? 'mobile' : 'desktop',
screenEmulation: { mobile: mobile },
maxWaitForLoad: 5000
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we in danger of running into #30 with this line gone?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought it was worth giving this simplification a shot, since we're now on a more recent release of Lighthouse.

@chosak chosak merged commit 18872c8 into main Sep 1, 2021
@chosak chosak deleted the fix/desktop-testing branch September 1, 2021 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants