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

Tooltip and Button: tidy up unit tests #57975

Merged
merged 4 commits into from Jan 23, 2024
Merged

Conversation

ciampo
Copy link
Contributor

@ciampo ciampo commented Jan 18, 2024

What?

As discussed in #57878 (comment), this PR:

  • tweaks Tooltip tests to use vanilla button instead of Button
  • adds more explicit tests to the Button component to test it in combination with Tooltip

Why?

To keep Tooltip free from side-effects with other components (Button), but at the same time to make sure that Button works as expected when nested in a Tooltip

How?

By tweaking unit tests

Testing Instructions

Read code changes, make sure that tests keep passing.

@ciampo ciampo requested a review from mirka January 18, 2024 16:31
@ciampo ciampo self-assigned this Jan 18, 2024
@ciampo ciampo added [Type] Code Quality Issues or PRs that relate to code quality [Package] Components /packages/components labels Jan 18, 2024
@ciampo ciampo added this to In progress (owned) ⏳ in WordPress Components via automation Jan 18, 2024
Copy link
Member

@mirka mirka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@ciampo ciampo force-pushed the refactor/tooltip-button-unit-tests branch from 8688cd1 to e4bc421 Compare January 23, 2024 13:07
@ciampo ciampo enabled auto-merge (squash) January 23, 2024 13:07
@ciampo ciampo merged commit 22276a2 into trunk Jan 23, 2024
56 checks passed
WordPress Components automation moved this from In progress (owned) ⏳ to Done 🎉 Jan 23, 2024
@ciampo ciampo deleted the refactor/tooltip-button-unit-tests branch January 23, 2024 13:39
@github-actions github-actions bot added this to the Gutenberg 17.6 milestone Jan 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Package] Components /packages/components [Type] Code Quality Issues or PRs that relate to code quality
Projects
Development

Successfully merging this pull request may close these issues.

None yet

2 participants