-
Notifications
You must be signed in to change notification settings - Fork 150
fix(percy): add global waitForSelector
to validate that storybook has loaded
#7483
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
fix(percy): add global waitForSelector
to validate that storybook has loaded
#7483
Conversation
✅ Deploy Preview for ibm-products-web-components ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for carbon-for-ibm-products ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #7483 +/- ##
==========================================
- Coverage 83.94% 83.93% -0.02%
==========================================
Files 425 425
Lines 17216 17227 +11
Branches 4545 4553 +8
==========================================
+ Hits 14452 14459 +7
- Misses 2764 2768 +4
🚀 New features to boost your workflow:
|
waitForSelector
to validate that storybook has loaded
@matthewgallo I’ll let you do the honors but looks like Percy is passing this time. 🙏 |
ce6686c
Closes #7513
I'm hoping increasing the network timeout for percy will resolve some of the flaky snapshots that get flagged as visual changes.Next attempt is to use the
waitForSelector
in the percy config to look for[data-carbon-theme]
since that attribute is only added after storybook has finished loading.Percy has flagged 8 visual differences which I think may be accurate. This PR contained changes to the breadcrumb row height which would explain the page header snapshots. And the other snapshot that was flagged was
NotificationPanel
, but it was just the 'n months ago' text. I'll approve the Percy snapshot changes and we can monitor new PRs for any Percy flakiness.While storybook is loading (no

[data-carbon-theme]
attribute)After storybook has loaded

What did you change?
.percy.yml
How did you test and verify your work?
Will test via percy PR check run in this PR