-
Notifications
You must be signed in to change notification settings - Fork 237
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
Cypress tests for service worker #12589
Conversation
|
||
const testSuites = [ | ||
{ | ||
path: '/pidgin/articles/czje40pxkypo?renderer_env=live', |
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.
Do we need more examples of other page types / services?
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.
Is it likely to work on one page/ service and not other pages/services?
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.
It should work the same for all of them. I think I might add a couple of serbian examples lat + cyr - just to make sure the routing works as expected? We could focus on articles first, but it should work for other page types too, which use the cached libraries.
Also, because these tests live in the Express app, there are no tests for live (or any other NextJS rendered) pages - but this can perhaps come later?
Summary
Cypress tests to test service worker caching functionality
Code changes
specialFeatures
suiteDeveloper Checklist - N/A
Testing
Additional Testing Steps
Ensure that the service worker tests pass when run against different environments
CYPRESS_APP_ENV=test yarn cypress run --spec './cypress/e2e/specialFeatures/serviceWorker/index.cy.js'
CYPRESS_APP_ENV=live yarn cypress run --spec './cypress/e2e/specialFeatures/serviceWorker/index.cy.js'
Useful Links