diff --git a/resources/views/users/edit.blade.php b/resources/views/users/edit.blade.php index 8e8b215b2b..c9bb68b246 100755 --- a/resources/views/users/edit.blade.php +++ b/resources/views/users/edit.blade.php @@ -37,7 +37,7 @@ input[type='text'][disabled], input[disabled], textarea[disabled], input[readonl
-
+ diff --git a/tests/acceptance/UsersCept.php b/tests/acceptance/UsersCept.php index a1310a92e1..64c6013dfc 100644 --- a/tests/acceptance/UsersCept.php +++ b/tests/acceptance/UsersCept.php @@ -21,13 +21,13 @@ $I->am('logged in admin'); $I->wantTo('ensure that you get errors when you submit an incomplete form'); $I->lookForwardTo('seeing errors display'); $I->click(['link' => 'Create New']); -$I->amOnPage('/admin/users/create'); +$I->amOnPage('admin/users/create'); $I->dontSee('Create User', '.page-header'); $I->see('Create User', 'h1.pull-left'); /* Submit form and expect errors */ $I->click(['name' => 'email']); -$I->submitForm('.form-horizontal', [ +$I->submitForm('#userForm', [ 'email' => 'me@example.com', ]); $I->seeElement('.alert-danger'); @@ -37,11 +37,11 @@ $I->dontSeeInSource('<br><'); /* Submit form and expect errors */ $I->click(['name' => 'email']); $I->click(['name' => 'username']); -$I->submitForm('.form-horizontal', [ - 'email' => 'me@example.com', +$I->submitForm('#userForm', [ + 'email' => \App\Helpers\Helper::generateRandomString(15).'@example.com', 'first_name' => 'Joe', 'last_name' => 'Smith', - 'username' => 'joesmith', + 'username' => \App\Helpers\Helper::generateRandomString(15), ]); $I->seeElement('.alert-danger');