driver->manage()->deleteAllCookies(); } } public function testPageLoads() { $this->browse(function (Browser $browser) { $browser ->visit(new Login()) ->auth() ->visitRoute('client.payment_methods.index') ->assertSee('Payment Methods'); }); } }