Behat: Add new user tests

pull/3383/head
Julio Montoya 5 years ago
parent a780e07b4c
commit e21499b4ad
  1. 24
      tests/behat/features/createUser.feature

@ -27,6 +27,30 @@ Feature: Users management as admin
And I press "submit"
Then I should see "The user has been added"
Scenario: Create a user with wrong username
And I am on "/main/admin/user_add.php"
And I fill in the following:
| firstname | NIÑO |
| lastname | NIÑO |
| email | example@example.com |
| username | NIÑO |
| password | smarshall |
And I check the "#send_mail_no" radio button selector
And I press "submit"
Then I should see "Only letters and numbers allowed"
Scenario: Create a user with wrong email
And I am on "/main/admin/user_add.php"
And I fill in the following:
| firstname | Juls |
| lastname | Juls |
| email | NI -ÑO@example.com |
| username | Juls |
| password | Juls |
And I check the "#send_mail_no" radio button selector
And I press "submit"
Then I should see "The email address is not complete or contains some invalid characters"
Scenario: Search and delete a user
And Admin top bar is disabled
And I am on "/main/admin/user_list.php"

Loading…
Cancel
Save