Dusk waitForLocation error message should include the current location #54128
Unanswered
darynmitchell
asked this question in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently, Dusk waitForLocation error message tells me that the test case run was not on the expected location, e.g.
I would find the message much more helpful if it also told me what the actual location was, e.g.
Q: Would the team be open to changes in WaitsForElement to support this?
Example
I tried out a change locally and it seems "relatively simple" to support, by allowing the caller to optionally pass a message callback function (either instead of $message, or as an additional param), e.g. something like this:
Beta Was this translation helpful? Give feedback.
All reactions