Skip to content

Always store selector in Wrapper created by wrapper.find(...) #1135

Closed
@ghost

Description

What problem does this feature solve?

When using wrapper.find(...), the returned new wrapper only knows the selector if nothing was found. This makes it difficult to debug tests with dynamic selectors and to create custom matchers like expect(wrapper.find('.something')).toExist().

What does the proposed API look like?

Make Wrapper always have a selector property when created with .find(...)—not only ErrorWrapper (

).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions