-
Notifications
You must be signed in to change notification settings - Fork 197
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
Add Playwright visual regression tests for error pages #2611
Conversation
Size Change: 0 B Total Size: 829 kB ℹ️ View Unchanged
|
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.
LGMT. Just to clarify "the snapshots show problems with inconsistency" that you mentioned, is the CSR single result error page being blank part of that? I wish there was a way to record that a snapshot was recording a bug rather than recording the intended behaviour/presentation.
Regardless, LGTM, glad we have these. It really helps to have these for bugs too because it enforces the idea of writing the test to reproduce the bug before fixing the bug 🙂
Yes, I meant exactly that, @sarayourfriend. The error pages on CSR should also show the yellow error page (and they do, in #2585 :) ) |
2a8660f
to
fe6c394
Compare
Based on the high urgency of this PR, the following reviewers are being gently reminded to review this PR: @dhruvkb Excluding weekend1 days, this PR was ready for review 2 day(s) ago. PRs labelled with high urgency are expected to be reviewed within 2 weekday(s)2. @obulat, if this PR is not ready for a review, please draft it to prevent reviewers from getting further unnecessary pings. Footnotes
|
fe6c394
to
61bd555
Compare
Fetching search results/single media results CSR / SSR 404, 429, 500
61bd555
to
0b739e8
Compare
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.
Really clever to use the error code as the search term 😻
Fixes
Fixes #2610 by @obulat
Description
To simulate the errors on the server, we use mock tapes that have the specific errors we need.
To simulate the errors on the client, we use Playwright's
page.route
function.This PR adds the snapshot tests for the following scenarios:
The snapshots show the problems we currently have in the error pages: the pages we show are not always consistent with the actual problem that the app encountered.
Testing Instructions
The CI should pass and the code should make sense.
Checklist
Update index.md
).main
) or a parent feature branch.Developer Certificate of Origin
Developer Certificate of Origin