From fa28a9a8b06947c4361f8e28ea24d8030a15350e Mon Sep 17 00:00:00 2001 From: Mohamed Alsharaf Date: Fri, 21 Aug 2015 00:45:04 +1200 Subject: [PATCH] Test: language field is required --- tests/functional/UserCest.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/functional/UserCest.php b/tests/functional/UserCest.php index 2ed065acf..b1ae8e70d 100644 --- a/tests/functional/UserCest.php +++ b/tests/functional/UserCest.php @@ -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'); } @@ -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'));