Skip to content

Chore: update message form specs to pass on Vue3

Marina Mosti requested to merge marina.mosti-451665-message-form-spec-vue3 into master

What does this MR do and why?

On the current Vue 3 run this test was failing due to mount, since the checkboxes were not being able to be found by findComponent.

By swapping to shallowMount and rewriting the find methods we now have success on both vue 2 and vue 3.

Issue: #451665

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

  • Run VUE_VERSION=3 yarn jest --watch against the message_form_spec
  • Repeat without the VUE_VERSION env
Edited by Marina Mosti

Merge request reports