I'm testing a web application with subdomain routing with Laravel Dusk. I have some redirection between subdomain, if some kind of verification is invalid.
So, my goal is to visit
an URL $a
then assert that I was redirected and the new URL is $b
.
I can do:
$browser->visit($a);
But I don't know what to do right after to check what the current URL is.