Fix spec violations in ee/spec/frontend/related_items_tree/components/create_issue_form_spec.js

Problem description

The spec file ee/spec/frontend/related_items_tree/components/create_issue_form_spec.js contains technical debt and/or antipatterns that need to be fixed. This is a prerequisite for updating our codebase to Vue3.

Proposal

The following issues have been identified in this spec file:

  • wrapper.vm or childComponent.vm modification
  • overriding method behavior
  • .setData() usage

Please see the related epic for more details on how these violations can be addressed.