Skip to content

Remove references to wrapper.vm

Alex Pennells requested to merge 413331-vue3ify-tests into master

What does this MR do and why?

Fixes some Vue 3 spec violations:

  • Use the local reference to the store, instead of from the component: wrapper.vm.$store -> store
  • Validate the different empty states using test IDs instead of checking the component internals

How to set up and validate locally

yarn jest ee/spec/frontend/issues_analytics/components/issues_analytics_spec.js

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #413331 (closed)

Merge request reports

Loading