all(); $customer = $customer->first(); $this->browse(function (Browser $browser) use($customer) { $browser->visit('/customer/login') ->type('email', $customer->email) ->type('password', $customer->password) ->click('input[type="submit"]') ->screenshot('error'); }); } }