Línea 16... |
Línea 16... |
16 |
|
16 |
|
17 |
Scenario: User accounts display default fields
|
17 |
Scenario: User accounts display default fields
|
18 |
When I navigate to "Users > Accounts > Browse list of users" in site administration
|
18 |
When I navigate to "Users > Accounts > Browse list of users" in site administration
|
19 |
# Name field always present, email field is default for showidentity.
|
19 |
# Name field always present, email field is default for showidentity.
|
20 |
Then the following should exist in the "reportbuilder-table" table:
|
20 |
Then the following should exist in the "reportbuilder-table" table:
|
21 |
| First name / Last name | Email address |
|
21 |
| First name | Email address |
|
22 |
| User One | one@example.com |
|
22 |
| User One | one@example.com |
|
23 |
| User Two | two@example.com |
|
23 |
| User Two | two@example.com |
|
24 |
# Should not see other identity fields or non-default name fields.
|
24 |
# Should not see other identity fields or non-default name fields.
|
25 |
And I should not see "Department" in the "reportbuilder-table" "table"
|
25 |
And I should not see "Department" in the "reportbuilder-table" "table"
|
Línea 32... |
Línea 32... |
32 |
Scenario: User accounts with extra name fields
|
32 |
Scenario: User accounts with extra name fields
|
33 |
Given the following config values are set as admin:
|
33 |
Given the following config values are set as admin:
|
34 |
| alternativefullnameformat | firstnamephonetic lastname |
|
34 |
| alternativefullnameformat | firstnamephonetic lastname |
|
35 |
When I navigate to "Users > Accounts > Browse list of users" in site administration
|
35 |
When I navigate to "Users > Accounts > Browse list of users" in site administration
|
36 |
Then the following should exist in the "reportbuilder-table" table:
|
36 |
Then the following should exist in the "reportbuilder-table" table:
|
37 |
| First name - phonetic / Last name | Email address |
|
37 |
| First name - phonetic | Email address |
|
38 |
| Yewzer One | one@example.com |
|
38 |
| Yewzer One | one@example.com |
|
39 |
| Yoozare Two | two@example.com |
|
39 |
| Yoozare Two | two@example.com |
|
Línea 40... |
Línea 40... |
40 |
|
40 |
|
41 |
Scenario: User accounts with specified identity fields
|
41 |
Scenario: User accounts with specified identity fields
|
42 |
Given the following config values are set as admin:
|
42 |
Given the following config values are set as admin:
|
43 |
| showuseridentity | department,profile_field_frog |
|
43 |
| showuseridentity | department,profile_field_frog |
|
44 |
When I navigate to "Users > Accounts > Browse list of users" in site administration
|
44 |
When I navigate to "Users > Accounts > Browse list of users" in site administration
|
45 |
Then the following should exist in the "reportbuilder-table" table:
|
45 |
Then the following should exist in the "reportbuilder-table" table:
|
46 |
| First name / Last name | Favourite frog | Department |
|
46 |
| First name | Favourite frog | Department |
|
47 |
| User One | Kermit | Attack |
|
47 |
| User One | Kermit | Attack |
|
48 |
| User Two | Tree | Defence |
|
48 |
| User Two | Tree | Defence |
|
49 |
And I should not see "Email address" in the "table" "css_element"
|
49 |
And I should not see "Email address" in the "table" "css_element"
|
Línea 101... |
Línea 101... |
101 |
Given the following "users" exist:
|
101 |
Given the following "users" exist:
|
102 |
| username | firstname | lastname | email | profile_field_frog |
|
102 |
| username | firstname | lastname | email | profile_field_frog |
|
103 |
| user3 | User | Three | three@example.com | Glass |
|
103 |
| user3 | User | Three | three@example.com | Glass |
|
104 |
And I navigate to "Users > Accounts > Browse list of users" in site administration
|
104 |
And I navigate to "Users > Accounts > Browse list of users" in site administration
|
105 |
Then the following should exist in the "reportbuilder-table" table:
|
105 |
Then the following should exist in the "reportbuilder-table" table:
|
106 |
| First name / Last name | Email address |
|
106 |
| First name | Email address |
|
107 |
| User One | one@example.com |
|
107 |
| User One | one@example.com |
|
108 |
| User Two | two@example.com |
|
108 |
| User Two | two@example.com |
|
109 |
| User Three | three@example.com |
|
109 |
| User Three | three@example.com |
|
110 |
And I click on "Filters" "button"
|
110 |
And I click on "Filters" "button"
|
111 |
And I set the following fields in the "Last name" "core_reportbuilder > Filter" to these values:
|
111 |
And I set the following fields in the "Last name" "core_reportbuilder > Filter" to these values:
|
Línea 135... |
Línea 135... |
135 |
And the following "course enrolments" exist:
|
135 |
And the following "course enrolments" exist:
|
136 |
| user | course | role |
|
136 |
| user | course | role |
|
137 |
| user2 | C1 | student |
|
137 |
| user2 | C1 | student |
|
138 |
And I navigate to "Users > Accounts > Browse list of users" in site administration
|
138 |
And I navigate to "Users > Accounts > Browse list of users" in site administration
|
139 |
Then the following should exist in the "reportbuilder-table" table:
|
139 |
Then the following should exist in the "reportbuilder-table" table:
|
140 |
| First name / Last name | Email address |
|
140 |
| First name | Email address |
|
141 |
| User One | one@example.com |
|
141 |
| User One | one@example.com |
|
142 |
| User Two | two@example.com |
|
142 |
| User Two | two@example.com |
|
143 |
And I click on "Filters" "button"
|
143 |
And I click on "Filters" "button"
|
144 |
And I set the following fields in the "Enrolled in any course" "core_reportbuilder > Filter" to these values:
|
144 |
And I set the following fields in the "Enrolled in any course" "core_reportbuilder > Filter" to these values:
|
145 |
| Enrolled in any course operator | Yes |
|
145 |
| Enrolled in any course operator | Yes |
|
Línea 164... |
Línea 164... |
164 |
And the following "role assigns" exist:
|
164 |
And the following "role assigns" exist:
|
165 |
| user | role | contextlevel | reference |
|
165 |
| user | role | contextlevel | reference |
|
166 |
| user1 | coursecreator | system | |
|
166 |
| user1 | coursecreator | system | |
|
167 |
And I navigate to "Users > Accounts > Browse list of users" in site administration
|
167 |
And I navigate to "Users > Accounts > Browse list of users" in site administration
|
168 |
Then the following should exist in the "reportbuilder-table" table:
|
168 |
Then the following should exist in the "reportbuilder-table" table:
|
169 |
| First name / Last name | Email address |
|
169 |
| First name | Email address |
|
170 |
| User One | one@example.com |
|
170 |
| User One | one@example.com |
|
171 |
| User Two | two@example.com |
|
171 |
| User Two | two@example.com |
|
172 |
| User Three | three@example.com |
|
172 |
| User Three | three@example.com |
|
173 |
And I click on "Filters" "button"
|
173 |
And I click on "Filters" "button"
|
174 |
And I set the following fields in the "System role" "core_reportbuilder > Filter" to these values:
|
174 |
And I set the following fields in the "System role" "core_reportbuilder > Filter" to these values:
|