question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Feature] Front-end performance testing

See original GitHub issue

It would be great if Playwright could do front-end performance testing using something like Google Lighthouse. For example, Cypress has cypress-audit. Something similar where we can run a test and assert the metrics would be great to do with Playwright.

Issue Analytics

  • State:open
  • Created 10 months ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
dgozmancommented, Nov 22, 2022

@nadvolod It would be awesome if you would like to build a convenient integration! If you could publish it to share with anyone else that needs it, that would be even better 😄

It is not a top priority for Playwright to include such a feature right now, but I’ll leave this feature request open for future prioritization.

0reactions
nadvolodcommented, Nov 22, 2022

@pavelfeldman good to know about the initial Cypress navigation, thanks for pointing that out 👍

Yes, a test runner + Lighthouse integration. The issue for me with direct Lighthouse integration is that it’s not automated. Looks like I could manually construct my assertions on the result of the await lighthouse('https://example.com', options); . However, seems more difficult than just calling a function with some pre-configured behavior. I can build that function myself or Playwright can build it into its capabilities and have that as a feature to benefit the entire community. Wdyt?

Read more comments on GitHub >

github_iconTop Results From Across the Web

The Complete Front-End Performance Testing Guide
The Complete Front-End Performance Testing Guide · Graph of response times and how we perceive delays | TestGuild · Graph of how speed...
Read more >
Front-End Performance 2021: Testing And Monitoring
An annual front-end performance checklist with everything you need to know to create fast experiences on the web today, from metrics to ...
Read more >
Front End Performance Testing - Software Testing Company
Front end performance test is a user-oriented test that checks and determines the integrity and usability of a program or web page from...
Read more >
What is Front End Testing? - Guru99
Front-end performance testing checks “How fast does page loads.” Optimizing the front-end performance for a single user is a good practice ...
Read more >
Front-End Performance Testing: Challenges and How to Solve ...
Front-end performance testing is basically just what the name implies: testing your site's performance in the end-user's browser.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found