Closed

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
(