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