-
Notifications
You must be signed in to change notification settings - Fork 167
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
Simplify Percy Breakpoint/Theme snapshots #5251
Conversation
This is progressing nicely, but I've noticed that several snapshots are missing. It looks like some error is being thrown for snapshots that are not combined. Error message is::
Sent a message to Browserstack for help diagnosing. Blocked until I have received response from them. |
f1f9a9d
to
5afefab
Compare
Still awaiting response from Browserstack, so I separated the test case grouping into its own task. This PR will just implement the simplified breakpoint/theming grouping |
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.
I must be missing some context here. Why are we not capturing screenshots of each theme at every breakpoint?
We intentionally don't capture at every breakpoint/theme combination. We assume that snapshot responsive content handling doesn't vary between themes at the same breakpoint, so we only capture the smaller breakpoints on desktop. |
Just to make sure I understand this: we don't currently take mobile screenshots for dark and paper theme? I didn't realize that; that's not optimal. I sort of understand the logic, but I'd probably suggest we take screenshots of all themes across all breakpoints eventually. That's unrelated from this PR though; thanks for explaining, this sounds good otherwise. |
@pastelcyborg This comes from this MM message from @bartaz - it was done as a way of reducing test volume I believe. If we captured in all themes and breakpoints, we'd expect to see test volume increase by around 3x. However, I do agree that it's optimal to snapshot every breakpoint in every theme for thoroughness' sake. |
11f7587
to
42b7a74
Compare
Now that I've been called out directly it feels I need to justify myself :) Yes, it felt a bit redundant to create all the snapshots in all themes (3 of them) and all screen sizes (2 or 3 of them), building up to 6 or 9 snapshots per example. Especially that they will all change at the same time in a same way. That being said, I agree, that it would be better/safer to screenshot everything. But is it worth the increased cost? Overall, not part of this PR, we can consider this, but I'm afraid it will bring us back to previous snapshot usage (or even above). |
This reverts commit 3abd037.
42b7a74
to
a4fb0b3
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.
LGTM
Done
Fixes WD-13804
QA
Check if PR is ready for release
If this PR contains Vanilla SCSS code changes, it should contain the following changes to make sure it's ready for the release:
Feature 🎁
,Breaking Change 💣
,Bug 🐛
,Documentation 📝
,Maintenance 🔨
.package.json
should be updated relative to the most recent release, following semver convention:Screenshots