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