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

Migrate PaletteEdit and CircularOptionPicker tests from user-event to ariakit/test #57809

Merged
merged 4 commits into from
Jan 12, 2024

Conversation

ciampo
Copy link
Contributor

@ciampo ciampo commented Jan 12, 2024

What?

Migrate PaletteEdit and CircularOptionPicker unit tests from @testing-libray/user-event to @ariakit/test

Why?

As we switch to using more ariakit-based components in @wordpress/components, some unit tests using @testing-library/user-event became flaky, due to slight differences in the timing of applying / rendering updates in those components.

How?

Removing @testing-library/user-events from the test suites, replacing it with the equivalent APIs from @ariakit/test

Testing Instructions

  • Make sure code changes make sense
  • Tests should pass without flakiness

@ciampo ciampo requested review from cbravobernal and a team January 12, 2024 15:34
@ciampo ciampo self-assigned this Jan 12, 2024
@ciampo ciampo added [Type] Enhancement A suggestion for improvement. [Package] Components /packages/components labels Jan 12, 2024
Copy link
Contributor

@cbravobernal cbravobernal left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks!

@cbravobernal cbravobernal enabled auto-merge (squash) January 12, 2024 15:38
@cbravobernal cbravobernal merged commit 1ce444f into trunk Jan 12, 2024
56 checks passed
@cbravobernal cbravobernal deleted the fix/user-event-to-ariakit-test branch January 12, 2024 16:20
@github-actions github-actions bot added this to the Gutenberg 17.6 milestone Jan 12, 2024
@ciampo ciampo changed the title Migrate ColorPalette and CircularOptionPicker tests from user-event to ariakit/test Migrate PaletteEdit and CircularOptionPicker tests from user-event to ariakit/test Jan 12, 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] Enhancement A suggestion for improvement.
Projects
Status: Done 🎉
Development

Successfully merging this pull request may close these issues.

2 participants