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

SearchControl: Add unit tests #58693

Merged
merged 1 commit into from
Feb 6, 2024
Merged

SearchControl: Add unit tests #58693

merged 1 commit into from
Feb 6, 2024

Conversation

mirka
Copy link
Member

@mirka mirka commented Feb 5, 2024

What?

Adds unit tests for the SearchControl component.

Why?

To clarify basic API behavior in preparation for #56524.

Testing Instructions

✅ Tests pass

@mirka mirka added [Type] Automated Testing Testing infrastructure changes impacting the execution of end-to-end (E2E) and/or unit tests. [Package] Components /packages/components labels Feb 5, 2024
@mirka mirka self-assigned this Feb 5, 2024
@mirka mirka requested a review from ajitbohra as a code owner February 5, 2024 20:28
Copy link

github-actions bot commented Feb 5, 2024

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

Core SVN

If you're a Core Committer, use this list when committing to wordpress-develop in SVN:

Props: 0mirka00, mciampini.

GitHub Merge commits

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: mirka <0mirka00@git.wordpress.org>
Co-authored-by: ciampo <mciampini@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

Comment on lines +37 to +38
// TODO: Uncontrolled mode is not supported yet.
// [ 'Uncontrolled', SearchControl ],
Copy link
Member Author

Choose a reason for hiding this comment

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

I confirmed that uncontrolled usage does not work at all with the current implementation.

Copy link
Contributor

@ciampo ciampo left a comment

Choose a reason for hiding this comment

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

🚀

@mirka mirka merged commit 7d75052 into trunk Feb 6, 2024
63 of 64 checks passed
@mirka mirka deleted the test/search-control branch February 6, 2024 13:23
@github-actions github-actions bot added this to the Gutenberg 17.7 milestone Feb 6, 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] Automated Testing Testing infrastructure changes impacting the execution of end-to-end (E2E) and/or unit tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants