Improve error messages of PatrolFinder.first/last/at(index)
#548
Labels
package: patrol
Related to the patrol package (native automation, test bundling)
Reported today by @jBorkowska, but it has been occurring since always. It's just the default Flutter behavior.
2 examples. Let's say that we're doing:
We'll get a
StateError (Bad state: no element)
instead of a failing assertion. We need to research how this can be improved.Another problem is with
await $('non-existing').scrollTo()
. This will throw aStateError
instead of our own, more descriptive exception.PS There's also a problem with stack-trace not containing the file and line which caused the exception to be thrown. This is a Flutter bug and is separate from this issue.
The text was updated successfully, but these errors were encountered: