Skip to content

Commit

Permalink
Test: language field is required
Browse files Browse the repository at this point in the history
  • Loading branch information
satrun77 committed Aug 20, 2015
1 parent 2b8da4b commit fa28a9a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/functional/UserCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,11 @@ public function updateFirstLastName(FunctionalTester $I)
$I->amLoggedAs($user);
$I->amOnAction('UserController@getSettings');
$I->fillField('firstname', 'First');
// $I->fillField('lastname', 'Last');
$I->fillField('lastname', 'Last');
$I->selectOption('language', 'en');
$I->click(trans('tinyissue.update'));
$I->seeInField('firstname', 'First');
// $I->seeInField('lastname', 'Last');
$I->seeInField('lastname', 'Last');
$I->seeLink('First', '/user/settings');
}

Expand Down Expand Up @@ -70,6 +71,7 @@ public function passwordNotMatched(FunctionalTester\UserSteps $I)
$I->fillField('password_confirmation', '1234');
$I->click(trans('tinyissue.update'));
$I->seeFormHasErrors();
$I->selectOption('language', 'en');
$I->fillField('password', 'newpass');
$I->fillField('password_confirmation', 'newpass');
$I->click(trans('tinyissue.update'));
Expand Down

0 comments on commit fa28a9a

Please sign in to comment.