-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Restore smoketest for offline-ready SW page #518
Conversation
…etween cache population and lighthouse's gatherer.
This smoketest is now up and running. Really basic sw page and we validate it's a-ok. Ready for review |
* smoketest: do full default run against our basic html page. * rename config
…e/lighthouse into offlinereadypageforsmoketest
We are looking good here. We now have a better platform for our smoketests, including a node-based webserver that we can configure. This means it'll be straightforward to write some fast smoketests for redirects and all the start_url/cache oddness that has cropped up. |
// We use an image that takes 2-seconds to load to delay window onload. | ||
// (Also about that document.write.. Bless me Souders for I have sinned...) | ||
document.write(` | ||
<img src="http://1.cuzillion.com/bin/resource.cgi?type=gif&sleep=2&n=1&t=${Date.now()}"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wow
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, this seems crazy, especially because we control our own server. Could you instead make an endpoint in static-server.js
that supports this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sg done.
mostly looks good. Shame that this moves us away from the general solution to #307, but so great to have the smoke test back |
The smoketest is flaky with mojibrush. This change will use a localhost page instead, hopefully resolving network concerns.