ToolsPanel: improve unit tests #35057
Labels
[Feature] Component System
WordPress component system
[Feature] UI Components
Impacts or related to the UI component system
[Status] In Progress
Tracking issues with work in progress
[Type] Automated Testing
Testing infrastructure changes impacting the execution of end-to-end (E2E) and/or unit tests.
[Type] Code Quality
Issues or PRs that relate to code quality
What
Improve unit tests by partially rewriting them. They should not be checking implementation details (like classnames, the presence of certain react components...), but instead, they should test the
ToolsPanel
component replicating the way end-users interact with it.Why
Here's a great explainer
A/C
querySelector
,querySelectorAll
or any similar way of getting an element from the DOM.The text was updated successfully, but these errors were encountered: