You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, when a getBy (or findBy) fails, the error is only No instance found.
It would be great to have what value was not found.
e.g. getByText('text that doesn't exist') would throw No instance found with text 'text that doesn't exist'
Possible Implementations
If it's easier to implement you could even omit the type like No instance found: 'text that doesn't exist'
Related Issues
#547
Currently findBy doesn't show the stack-trace so it's hard to know which one failed.
Having a better error message would make it easier to debug, even without the stack-trace.
The text was updated successfully, but these errors were encountered:
Isn't the code frame enough to determine where the error happens? It should point to the faulty code. If it's not there, it's a bug and should be fixed
The stack-trace is not working for findBy and waitFor at the moment (see #547).
Adding the value in the error message seemed to be an easier thing to prioritize.
Describe the Feature
Currently, when a
getBy
(orfindBy
) fails, the error is onlyNo instance found
.It would be great to have what value was not found.
e.g.
getByText('text that doesn't exist')
would throwNo instance found with text 'text that doesn't exist'
Possible Implementations
If it's easier to implement you could even omit the type like
No instance found: 'text that doesn't exist'
Related Issues
#547
Currently
findBy
doesn't show the stack-trace so it's hard to know which one failed.Having a better error message would make it easier to debug, even without the stack-trace.
The text was updated successfully, but these errors were encountered: