Skip to content

Use vue test utils in MR Widget Status Icon spec

What does this MR do?

Migrate MR Widget Status Icons to vue-test-utils, see #220476. Actions taken:

  • Switch from mountComponent to shallowMount / mount from @vue/test-utils.
  • Use finder functions (e.g. findLoadingIcon) instead of vm.$el.querySelector functions.
  • Migrate from .js-* locator classes to data-testid attributes.

Screenshots (strongly suggested)

Related component for reference:

Screen_Shot_2021-01-25_at_1.57.42_PM

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team

Related to #220476

Edited by Miguel Rincon

Merge request reports