Geo Sites - Jest spec cleanup
What does this MR do and why?
Closes #329569 (closed)
This change is a technical debt cleanup of the Jest specs for the Geo Sites UI. This MR does the following things:
- Removes all
wrapper.destroy
calls => &8915 - Replaces all
extendedWrapper(shallowMount)
withshallowMountExtended
- Replaces non-explicit selectors (ie.
wrapper.find('span')
) withwrapper.findByTestId()
- Removes a couple redundant tests
Screenshots or screen recordings
N/A
How to set up and validate locally
- Run
yarn jest ee/spec/frontend/geo_nodes
and ensure all tests pass.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.