Skip to content

Replace findAll with findAllComponents

Note: This issue is closed. See #2163 (comment 1285105010) for more info.

Summary

Replace all find* occurrences with findComponents or querySelector in spec files.

As noted in the vue-test-utils docs:

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.

Also see: https://v1.test-utils.vuejs.org/upgrading-to-v1/#find

Implementation plan

  • If we're using findAll to search for components, replace it with findAllComponent.
  • If we're using find to search for a component, replace it with findComponent
  • If we're using find to search for a DOM Node, replace it with querySelector
  • If we're using findAll to search DOM Nodes, replace it with querySelectorAll
Edited by Savas Vedova