Skip to content

Wrapper#findAllComponents replaces Wrapper#findAll

Eduardo Sanz García requested to merge eduardosanz/use-findAllComponents into master

What does this MR do and why?

Automatic conversion of Vue Test Util Wrapper#findAll for Wrapper#findAllComponents, when applied to Vue components.

From the Vue Test Util page: https://v1.test-utils.vuejs.org/api/wrapper/#findall

Deprecation warning

Using findAll to search for Components is deprecated and will be
removed. Use findAllComponents instead. The findAll method will continue
to work for finding elements using any valid selector.
  • First commit: enables the warning when Wrapper#findAll is used incorrectly
  • Second commit: it's the automatic remediation
  • Third commit: manual fix of some failing tests

Screenshots or screen recordings

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

No change. It only affects tests.

How to set up and validate locally

All Jest specss pass: yarn jest

MR acceptance checklist

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

Edited by Eduardo Sanz García

Merge request reports

Loading