And I navigate to "Users > Accounts > Upload users" in site administration
When I upload "lib/tests/fixtures/upload_users.csv" file to "File" filemanager
And I press "Upload users"
+ And I should see "Upload users preview"
And I set the following fields to these values:
| City/town | Brighton |
| Department | Purchasing |
When I navigate to "Users > Accounts > Upload users" in site administration
And I upload "lib/tests/fixtures/upload_users_profile.csv" file to "File" filemanager
And I press "Upload users"
+ And I should see "Upload users preview"
And I press "Upload users"
# Check that users were created and the superfield is filled.
And I navigate to "Users > Accounts > Browse list of users" in site administration
And I should see "The big guy"
And I log out
+ @javascript
+ Scenario: Upload users setting their email stop value
+ Given I log in as "admin"
+ And I navigate to "Users > Accounts > Upload users" in site administration
+ When I upload "lib/tests/fixtures/upload_users_emailstop.csv" file to "File" filemanager
+ And I press "Upload users"
+ Then I should see "Upload users preview"
+ And the following should exist in the "uupreview" table:
+ | CSV line | username | emailstop |
+ | 2 | jbloggs | 1 |
+ | 3 | fbloggs | 0 |
+ And I press "Upload users"
+ And I should see "Users created: 2"
+ And I log out
+
@javascript
Scenario: Upload users setting their user theme
Given the following "courses" exist:
Then I should see "2 January 2020" in the "Enrolment starts" "table_row"
And I should see "12 January 2020" in the "Enrolment ends" "table_row"
And I click on "Close" "button"
- And I log out
+ And I log out
\ No newline at end of file
--- /dev/null
+username,password,firstname,lastname,email,emailstop
+jbloggs,hunter42,Joe,Bloggs,jbloggs@example.com,1
+fbloggs,hunter42,Fred,Bloggs,fbloggs@example.com,0