MDL-41847 core_user: Add preferred lang field to the user creation form
[moodle.git] / user / tests / behat / addnewuser.feature
CommitLineData
b6e594b1
SA
1@core @core_user
2Feature: Create manually an user.
3 In order create a user properly
4 As an admin
5 I need to be able to add new users and edit their fields.
6
7 @javascript
8 Scenario: Change default language for a new user
9 Given I log in as "admin"
10 When I navigate to "Add a new user" node in "Site administration > Users > Accounts"
11 Then I should see "Preferred language"
12
13 @javascript
14 Scenario: Language not displayed when editing an existing user
15 Given the following "users" exist:
16 | username | firstname | lastname | email |
17 | student1 | Student | 1 | student1@example.com |
18 When I log in as "admin"
19 And I navigate to "Browse list of users" node in "Site administration > Users > Accounts"
20 And I follow "Student 1"
21 And I follow "Edit profile"
22 Then I should not see "Preferred language"