Skip to content
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

Merged
merged 7 commits into from
May 17, 2023

Conversation

booc0mtaco
Copy link
Contributor

@booc0mtaco booc0mtaco commented May 16, 2023

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

@booc0mtaco booc0mtaco requested a review from a team May 16, 2023 22:31
@github-actions
Copy link

github-actions bot commented May 16, 2023

size-limit report 📦

Path Size
components 94.4 KB (-0.07% 🔽)
styles 36.31 KB (0%)

@codecov
Copy link

codecov bot commented May 16, 2023

Codecov Report

Merging #1617 (c9fdb51) into next (d9f0bfb) will decrease coverage by 0.01%.
The diff coverage is 100.00%.

@@            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              
Impacted Files Coverage Δ
src/components/Slider/Slider.stories.tsx 69.23% <ø> (ø)
src/components/Tooltip/Tooltip.tsx 100.00% <ø> (ø)
src/components/Tooltip/Tooltip.stories.tsx 100.00% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@booc0mtaco booc0mtaco merged commit 21fa1cb into next May 17, 2023
@booc0mtaco booc0mtaco deleted the aholloway/x-remove-tooltip-test-flakiness branch May 17, 2023 16:10
Tooltip trigger
</Button>
),
children: <div className="fpo w-3 p-1">&bull;</div>,
Copy link
Contributor

@jinlee93 jinlee93 Jun 6, 2023

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

Copy link
Contributor Author

@booc0mtaco booc0mtaco Jun 6, 2023

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 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants