You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
There should be no usages of querySelector, querySelectorAll or any similar way of getting an element from the DOM.
Similarly, we should not test the exact DOM structure (e.g. getting parent elements, or checking for the existence of a specific React component). We should instead, for example, find components by role, or accessible text
changed the title [-]ToolsPanel: Rewrite unit tests to use querySelector less, and to test less implementation details and more the behaviour that the user should expect[/-][+]ToolsPanel: improve unit tests[/+]on Sep 22, 2021
Activity
[-]ToolsPanel: Rewrite unit tests to use querySelector less, and to test less implementation details and more the behaviour that the user should expect[/-][+]ToolsPanel: improve unit tests[/+]aaronrobertshaw commentedon Oct 15, 2021
A PR has been created addressing as much as possible from the list in the description: #35658