Currently, the message of the waitForUrlToBeEqualToExpectedUrl method is something like:
Failed: current URL is different than expected URL: 'https://my-app.com'.
This lets us know that the URL is different than the expected one, but it does not tell us what's the current URL, which could be a piece of very helpful information when debugging failures.
I suggest that we change the message to something like:
Failed: current URL (https://www.i-am-the-current-url.com) is different than expected URL (https://im-another-url.com).
Note: remember to do the same for related methods (i.e., waitForUrlNotToBeEqualToExpectedUrl, waitForUrlToContainString, waitForUrlNotToContainString.)
Currently, the message of the
waitForUrlToBeEqualToExpectedUrlmethod is something like:Failed: current URL is different than expected URL: 'https://my-app.com'.This lets us know that the URL is different than the expected one, but it does not tell us what's the current URL, which could be a piece of very helpful information when debugging failures.
I suggest that we change the message to something like: