create(); $user->assignRole('customer'); $this->actingAs($user); $this->visit('home'); $this->seePageIs('home'); $this->click(trans('auth.change_password')); $this->type('member1','old_password'); $this->type('rahasia','password'); $this->type('rahasia','password_confirmation'); $this->press('Ganti Password'); $this->see('Password lama tidak cocok'); $this->type('member','old_password'); $this->type('rahasia','password'); $this->type('rahasia','password_confirmation'); $this->press('Ganti Password'); $this->see('Password berhasil diubah'); // Logout and login using new Password $this->click('Keluar'); $this->seePageIs('auth/login'); $this->type($user->username,'username'); $this->type('rahasia','password'); $this->press('Login'); $this->seePageIs('home'); } }