Skip to content

findAllComponents() is not a proper substitute for findAll() #1594

Closed
@adama8x

Description

@adama8x

Feature Description

wrapper.findAllComponents() should Take CSS selectors as an argument.

Well maybe I'm doing something wrong by not throwing refs on every tiny element in my component or making sub components out of every div, but how can I safely test the amount of elements rendered to a list by referencing their class selector when I should not be using the findAll() method anymore?

Am I missing something (which is definitely not unlikely)? If not, this feature would be well appreciated.

Problem

wrapper.findAll() Has a deprecation warning, the suggested substitute wrapper.findAllComponents() does not cover the functionality.

Expected behaviour

As described in the Feature Description

Alternatives

An additional wrapper.findAllElements() function.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions