Is there a way to assert current URL value in Laravel Dusk?
Here is a way to check the URL value in Laravel Dusk:
$browser->visit($a);
$url = $browser->driver->getCurrentURL();
$this->assertEquals($b, $url);
You can use assertUrlIs()
:
$browser->assertUrlIs($b);