add_users_csv.feature 1.2 KB
Newer Older
1
2
3
4
5
6
7
8
@javascript @core @core_administration
Feature: Allow user csv upload to ignore non-essential mandatory fields
    In order to add users by csv
    As an admin follow through add users by csv
    So I can change the mandatory fields

Scenario: Create users by csv (Bug 1426983)
    # Log in as "Admin" user
9
    Given I log in as "admin" with password "Kupuhipa1"
10
11
12
    # Verifying log in was successful
    And I should see "Admin User"
    # Adding Users by CVS
13
    And I choose "Add users by CSV" in "Users" from Admin menu
14
    And I attach the file "UserCSV.csv" to "CSV file"
Son Nguyen's avatar
Son Nguyen committed
15
16
    And I disable the switch "Force password change"
    And I disable the switch "Email users about their account"
17
18
19
    And I press "Add users by CSV"
    Then I should see "Your CSV file was processed successfully"
    And I should see "New users added: 4."
20
21

    # Check that we can delete a user after upload (Bug #1558864)
22
    And I choose "User search" in "Users" from Admin menu
23
24
25
26
27
28
29
    And I follow "kevin01"
    And I follow "Suspend or delete this user"
    And I scroll to the id "delete"
    # Wait for the dialog to appear
    And I wait "1" seconds
    And I press and confirm "Delete user"
    And I should see "User deleted successfully"