driver->manage()->deleteAllCookies(); } $this->browse(function (Browser $browser) { $browser ->visit(new Login()) ->auth(); }); } public function testPageLoads() { $this->browse(function (Browser $browser) { $browser ->visitRoute('client.invoices.index') ->click('button[data-ref="client-profile-dropdown"]') ->click('a[data-ref="client-profile-dropdown-settings"]') ->waitForText('Client Information') ->assertSeeIn('span[data-ref="meta-title"]', 'Client Information') ->visitRoute('client.logout'); }); } }