Remove setData from test

What does this MR do and why?

Describe in detail what your merge request does and why.

This MR resolves #391025 (closed)

It is not good practice to directly manipulate data of a component.

What was cleaned up from epic:

  1. Removed wrapper.destroy()
  2. Removed setData
  3. Created helpers

scanner_filter.vue will be deprecated but it is still important to remove setData in order to facilitate VUE 3 migration. Even though test case is simplified, it still tests its purpose.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

NO VISUAL CHANGES

How to set up and validate locally

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

  1. Checkout branch
  2. Run test locally
  3. Or just check in pipeline

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 #391025 (closed)

Edited by Artur Fedorov

Merge request reports

Loading