switches_general_account.feature 2 KB
Newer Older
Son Nguyen's avatar
Son Nguyen committed
1
@javascript @core @core_administration
2
3
4
5
6
7
Feature: Switches on general accounts
In order to change settings
As an admin
I need to be able to switch switches back and forth

Scenario: Turning switchboxes on and off in diff areas (Bug 1431569)
8
 Given I log in as "admin" with password "Kupuhipa1"
9
 # In the adding users area
10
 When I choose "Add user" in "Users" from Admin menu
11
 And I press "General account options"
12
13
14
15
16
17
18
 # Changing the switches to their opposite setting
 And I set the following fields to these values:
 | HTML editor | 0 |
 | Disable email | 1 |
 | Show controls to add and remove columns when editing a page | 1 |
 | Multiple journals | 1 |
 | Dashboard information | 0 |
19
 And I press "×" in the "div.modal-header" "css_element"
20
21
22
23
24
25
26
27
 And I fill in the following:
 | firstname   | white  |
 | lastname    | valiant    |
 | email       | wv@example.com |
 | username    | wval  |
 | password    | mahara1  |
 And I press "Create user"
 # In the Admin block adding users by CSV area
28
 And I choose "Add users by CSV" in "Users" from Admin menu
29
 And I follow "General account options"
Son Nguyen's avatar
Son Nguyen committed
30
 # Changing the switches to the opposite setting
31
32
33
34
35
36
37
 And I set the following fields to these values:
 | HTML editor | 0 |
 | Disable email | 1 |
 | Show controls to add and remove columns when editing a page | 1 |
 | Multiple journals | 1 |
 | Dashboard information | 0 |
 And I attach the file "UserCSV.csv" to "CSV file"
Son Nguyen's avatar
Son Nguyen committed
38
39
 And I disable the switch "Force password change"
 And I disable the switch "Email users about their account"
40
41
 And I press "Add users by CSV"
 # Navigating to the account index
42
 And I log out
43
 Then I log in as "bob01" with password "Mahara1"
44
 And I go to "account/index.php"
45
 And I should not see "Undefined index:"
46
47
48
49
50
51
52
53
54
 # Changing the switches to their opposite setting
 And I set the following fields to these values:
 | HTML editor | 1 |
 | Disable email | 0 |
 | Show controls to add and remove columns when editing a page | 0 |
 | Multiple journals | 0 |
 | Maximum tags in cloud | 15 |
 | Dashboard information | 1 |
 And I press "Save"