Skip to content

Commit

Permalink
Some changes are applied to unit tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
alenoosh committed Jun 24, 2015
1 parent 288eb59 commit 5657687
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion tests/LoginTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public function test_login()
{
$this->visit('/panel/login')
->type('[email protected]', 'email')
->type('oooooo', 'password')
->type('12345', 'password')
->press('Login')
->see('Dashboard');

Expand Down
2 changes: 1 addition & 1 deletion tests/LogoutTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public function test_logout()
{
$this->visit('/panel/login')
->type('[email protected]', 'email')
->type('oooooo', 'password')
->type('12345', 'password')
->press('Login')
->see('Dashboard')
->click('Log out')
Expand Down
2 changes: 1 addition & 1 deletion tests/ProfileEditTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public function test_edit_profile()
{
$this->visit('/panel/login')
->type('[email protected]', 'email')
->type('oooooo', 'password')
->type('12345', 'password')
->press('Login')
->see('Dashboard')
->click('Profile Edit')
Expand Down
10 changes: 5 additions & 5 deletions tests/ResetPasswordTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public function test_reset_password()
{
$this->visit('/panel/login')
->type('[email protected]', 'email')
->type('oooooo', 'password')
->type('12345', 'password')
->press('Login')
->see('Dashboard')
->click('Reset Password')
Expand All @@ -24,25 +24,25 @@ public function test_reset_password()

$this->visit('/panel/login')
->type('[email protected]', 'email')
->type('oooooo', 'password')
->type('12345', 'password')
->press('Login')
->see('Dashboard')
->click('Reset Password')
->type('[email protected]', 'email')
->type('oooooo', 'current_password')
->type('12345', 'current_password')
->type('pppppp', 'password')
->type('ppppp', 'password_confirmation')
->press('Change Password')
->see('Passwords not matched!!');

$this->visit('/panel/login')
->type('[email protected]', 'email')
->type('oooooo', 'password')
->type('12345', 'password')
->press('Login')
->see('Dashboard')
->click('Reset Password')
->type('[email protected]', 'email')
->type('oooooo', 'current_password')
->type('12345', 'current_password')
->type('pppppp', 'password')
->type('pppppp', 'password_confirmation')
->press('Change Password')
Expand Down

0 comments on commit 5657687

Please sign in to comment.