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.

DevTools webtests improvements

See original GitHub issue

Summary

Now that we’ve started to bring the DevTools testing into core we can start to make them even stronger 😃

Miscellaneous thoughts:

  • Move LighthouseTestRunner into core as well so we can make changes to the shared utilities.
  • Strengthen audit assertions, for example we had to disable all perf assertions in the past because screenshots were flaky. It would be awesome if we could flip the script to get Chromium’s perspective to consider flaky screenshot collection a bug and fix that instead of disabling the tests that point it out 😃
  • Assertions on the rendering of the report. AFAIK all our current tests assert on the LHR are obtained from a spy on internal methods. Some sort of testing that the complete rendering pipeline works would be great for testing PRs like #11411
  • A package.json script that would build and open the latest Lighthouse in DevTools for manual inspection.
  • fix caching TTL https://github.com/GoogleChrome/lighthouse/issues/11414#issuecomment-691294975
  • remove the TestExpectations that marks one of the tests flaky (probably not flaky anymore)
  • startup errors should show error and not timeout https://github.com/GoogleChrome/lighthouse/pull/10630#issuecomment-694400741
  • only put explanation in snapshots when audit fails
  • don’t hide output of http server (blocked port hangs)
  • git pull devtools checkout in .tmp #11717 #11678

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
brendankennycommented, Sep 17, 2020

wdyt about dropping the need for wget?

Sucks to have to install it so some scripts can basically curl some things 😃

I don’t see any unusual things going on, seems like it would be a simple replacement?

1reaction
patrickhulcecommented, Sep 11, 2020

wait, but why didn’t #11411 break the renderer since it gets rid of Runtime.cachedResources and uses globalThis.EXPORTED_CACHED_RESOURCES_ONLY_FOR_LIGHTHOUSE but the cached devtools code presumably wouldn’t have that new object yet?

I don’t know. At the time I said that I hadn’t looked at #11417 yet 😆 I had it in my head that we wouldn’t have rebuilt for devtools at all if the hash key wasn’t changed (like how the lantern tests work), but now I’m seeing it should’ve been run with a mismatched old DevTools, so I have the same question as you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Migrate Lighthouse data-warning test from webtests to e2e [devtools ...
D test/webtests/http/tests/devtools/lighthouse/lighthouse-clear-data-warning.js ... Luckily, the exercise helped me find a few improvements to the test ...
Read more >
What's New In DevTools (Chrome 106)
# Improved call stack during debugging. With the Automatically add known third-party scripts to ignore list setting, the call stack now shows ...
Read more >
devtools/devtools-frontend.git - Git at Google
The client-side of the Chrome DevTools, including all JS & CSS to run the DevTools webapp. Source code. The frontend is available on...
Read more >
1203169 - ☂️ Re-enable disabled DevTools-specific Blink web tests
Issue 1203169: ☂️ Re-enable disabled DevTools-specific Blink web tests · crbug.com/847114 [ Linux ] http/tests/devtools/tracing/decode-resize. · crbug.com/ ...
Read more >
What's New In DevTools? - Smashing Magazine
From powerful productivity improvements to entire new panels, ... Chrome DevTools has had an Accessibility panel for some time in the ...
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