-
Notifications
You must be signed in to change notification settings - Fork 4
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
test(Tooltip): add testing thresholds to tooltip snaps #1617
Conversation
size-limit report 📦
|
Codecov Report
@@ Coverage Diff @@
## next #1617 +/- ##
==========================================
- Coverage 91.32% 91.31% -0.01%
==========================================
Files 280 280
Lines 4195 4192 -3
Branches 789 789
==========================================
- Hits 3831 3828 -3
Misses 338 338
Partials 26 26
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
- this is based on looking at the interactive diff tool offered by chromatic - https://www.chromatic.com/docs/threshold
Tooltip trigger | ||
</Button> | ||
), | ||
children: <div className="fpo w-3 p-1">•</div>, |
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.
Sorry to re-dig this up. If we recall, why did we make the trigger a bullet? @booc0mtaco
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.
@jinlee93 no special reason. I was curious to see how HTML entities worked. confirmed it wouldn't escape the code :)
Summary:
From https://www.chromatic.com/docs/threshold, allow for more variance in the snapshots for
Tooltip
instead of disabling the tests. Also apply to any snapshots that use render directly. This should reduce the flakiness of some of these tests (and let us re-enable the tests that were turned off before)Test Plan:
(n/a) Verify whether this makes any difference to tests by re-running tests a few times