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

TabPanel: Add tests and changelog for onSelect behavior change #45211

Merged
merged 2 commits into from
Oct 24, 2022

Conversation

mirka
Copy link
Member

@mirka mirka commented Oct 21, 2022

Follow-up to #44028

What?

Adds changelog and tests for a bug fix added in #44028.

Why?

This surfaced in a rebase while reviewing #44935. It's a notable change to what triggers the onSelect callback, and warrants a changelog for affected consumers.

Testing Instructions

✅ Tests pass

@mirka mirka added [Type] Bug An existing feature does not function as intended [Package] Components /packages/components labels Oct 21, 2022
@mirka mirka requested a review from ajitbohra as a code owner October 21, 2022 17:23
@mirka mirka self-assigned this Oct 21, 2022
const user = setupUser();
const mockOnSelect = jest.fn();

const { rerender } = render(
Copy link
Contributor

Choose a reason for hiding this comment

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

TIL - this is a cool little destructure!

Copy link
Contributor

@chad1008 chad1008 left a comment

Choose a reason for hiding this comment

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

These look good and test well to me! 🚢

@youknowriad
Copy link
Contributor

Thanks for the follow-up here

@mirka mirka merged commit 3ce0478 into trunk Oct 24, 2022
@mirka mirka deleted the tabpanel-add-tests branch October 24, 2022 13:56
@github-actions github-actions bot added this to the Gutenberg 14.5 milestone Oct 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Package] Components /packages/components [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants