diff --git a/tests/Feature/Auth/MemberChangePasswordTest.php b/tests/Feature/Auth/MemberChangePasswordTest.php index ce03252..4e20952 100644 --- a/tests/Feature/Auth/MemberChangePasswordTest.php +++ b/tests/Feature/Auth/MemberChangePasswordTest.php @@ -21,13 +21,13 @@ class MemberChangePasswordTest extends TestCase $this->type('member1','old_password'); $this->type('rahasia','password'); $this->type('rahasia','password_confirmation'); - $this->press('Ganti Password'); + $this->press(trans('auth.change_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->press(trans('auth.change_password')); $this->see('Password berhasil diubah'); // Logout and login using new Password diff --git a/tests/Feature/Auth/MemberLoginTest.php b/tests/Feature/Auth/MemberLoginTest.php index 60bbf08..9506c4e 100644 --- a/tests/Feature/Auth/MemberLoginTest.php +++ b/tests/Feature/Auth/MemberLoginTest.php @@ -19,7 +19,7 @@ class MemberLoginTest extends TestCase $this->press(trans('auth.login')); $this->seePageIs(route('home')); $this->see('Selamat datang kembali Nama Member.'); - $this->click('Keluar'); + $this->click(trans('auth.logout')); $this->seePageIs(route('auth.login')); $this->see('Anda telah logout.'); } diff --git a/tests/Feature/Auth/MemberRegistrationTest.php b/tests/Feature/Auth/MemberRegistrationTest.php index 929221c..693929b 100644 --- a/tests/Feature/Auth/MemberRegistrationTest.php +++ b/tests/Feature/Auth/MemberRegistrationTest.php @@ -15,7 +15,7 @@ class MemberRegistrationTest extends TestCase $this->type('member@app.dev', 'email'); $this->type('', 'password'); $this->type('', 'password_confirmation'); - $this->press('Buat Akun Baru'); + $this->press(trans('auth.register')); $this->seePageIs(route('auth.register')); $this->see('Nama harus diisi.'); $this->see('Email ini sudah terdaftar.'); @@ -26,7 +26,7 @@ class MemberRegistrationTest extends TestCase $this->type('email', 'email'); $this->type('password', 'password'); $this->type('password..', 'password_confirmation'); - $this->press('Buat Akun Baru'); + $this->press(trans('auth.register')); $this->seePageIs(route('auth.register')); $this->see('Email tidak valid.'); $this->see('Konfirmasi password tidak sesuai.'); @@ -40,7 +40,7 @@ class MemberRegistrationTest extends TestCase $this->type('email@mail.com', 'email'); $this->type('password.111', 'password'); $this->type('password.111', 'password_confirmation'); - $this->press('Buat Akun Baru'); + $this->press(trans('auth.register')); $this->seePageIs(route('home')); $this->see('Selamat datang Nama Member.'); }