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