Línea 36... |
Línea 36... |
36 |
And I press "Save and display"
|
36 |
And I press "Save and display"
|
37 |
When I navigate to "View > User report" in the course gradebook
|
37 |
When I navigate to "View > User report" in the course gradebook
|
38 |
Then ".groupsearchwidget" "css_element" should not exist
|
38 |
Then ".groupsearchwidget" "css_element" should not exist
|
Línea 39... |
Línea 39... |
39 |
|
39 |
|
40 |
Scenario: A teacher can search for and find a group to find a user in
|
40 |
Scenario: A teacher can search for and find a group to find a user in
|
41 |
Given I confirm "Tutor group" in "group" search within the gradebook widget exists
|
41 |
Given I confirm "Tutor group" exists in the "Search groups" search combo box
|
42 |
And I confirm "Marker group" in "group" search within the gradebook widget exists
|
42 |
And I confirm "Marker group" exists in the "Search groups" search combo box
|
43 |
When I set the field "Search groups" to "tutor"
|
43 |
When I set the field "Search groups" to "tutor"
|
44 |
And I wait "1" seconds
|
44 |
And I wait "1" seconds
|
45 |
Then I confirm "Tutor group" in "group" search within the gradebook widget exists
|
45 |
Then I confirm "Tutor group" exists in the "Search groups" search combo box
|
46 |
And I confirm "Marker group" in "group" search within the gradebook widget does not exist
|
46 |
And I confirm "Marker group" does not exist in the "Search groups" search combo box
|
47 |
And I click on "Tutor group" in the "group" search widget
|
47 |
And I click on "Tutor group" in the "Search groups" search combo box
|
48 |
# The search input remains in the field on reload this is in keeping with other search implementations.
|
48 |
# The search input remains in the field on reload this is in keeping with other search implementations.
|
49 |
And I click on ".groupsearchwidget" "css_element"
|
49 |
And I click on ".groupsearchwidget" "css_element"
|
50 |
And the field "Search groups" matches value "tutor"
|
50 |
And the field "Search groups" matches value "tutor"
|
51 |
Then I set the field "Search groups" to "Turtle"
|
51 |
Then I set the field "Search groups" to "Turtle"
|
Línea 52... |
Línea 52... |
52 |
And I should see "No results for \"Turtle\""
|
52 |
And I should see "No results for \"Turtle\""
|
53 |
|
53 |
|
54 |
Scenario: A teacher can only see the group members in the 'user' search widget after selecting a group option
|
54 |
Scenario: A teacher can only see the group members in the 'user' search widget after selecting a group option
|
55 |
# Confirm that all users are initially displayed in the 'user' search widget.
|
55 |
# Confirm that all users are initially displayed in the 'user' search widget.
|
56 |
Given I set the field "Search users" to "Student"
|
56 |
Given I set the field "Search users" to "Student"
|
57 |
And I confirm "Student 1" in "user" search within the gradebook widget exists
|
57 |
And I confirm "Student 1" exists in the "Search users" search combo box
|
58 |
And I confirm "Student 2" in "user" search within the gradebook widget exists
|
58 |
And I confirm "Student 2" exists in the "Search users" search combo box
|
59 |
# Select a particular group from the 'group' search widget.
|
59 |
# Select a particular group from the 'group' search widget.
|
60 |
When I click on "Default group" in the "group" search widget
|
60 |
When I click on "Default group" in the "Search groups" search combo box
|
61 |
# Confirm that only users which are members of the selected group are displayed in the 'user' search widget.
|
61 |
# Confirm that only users which are members of the selected group are displayed in the 'user' search widget.
|
62 |
And I set the field "Search users" to "Student"
|
62 |
And I set the field "Search users" to "Student"
|
63 |
Then I confirm "Student 1" in "user" search within the gradebook widget exists
|
63 |
Then I confirm "Student 1" exists in the "Search users" search combo box
|
64 |
And I confirm "Student 2" in "user" search within the gradebook widget does not exist
|
64 |
And I confirm "Student 2" does not exist in the "Search users" search combo box
|
65 |
And I click on "Tutor group" in the "group" search widget
|
65 |
And I click on "Tutor group" in the "Search groups" search combo box
|
66 |
And I set the field "Search users" to "Student"
|
66 |
And I set the field "Search users" to "Student"
|
67 |
And I confirm "Student 1" in "user" search within the gradebook widget does not exist
|
67 |
And I confirm "Student 1" does not exist in the "Search users" search combo box
|
68 |
And I confirm "Student 2" in "user" search within the gradebook widget does not exist
|
68 |
And I confirm "Student 2" does not exist in the "Search users" search combo box
|
69 |
And I click on "All participants" in the "group" search widget
|
69 |
And I click on "All participants" in the "Search groups" search combo box
|
70 |
And I set the field "Search users" to "Student"
|
70 |
And I set the field "Search users" to "Student"
|
Línea 71... |
Línea 71... |
71 |
And I confirm "Student 1" in "user" search within the gradebook widget exists
|
71 |
And I confirm "Student 1" exists in the "Search users" search combo box
|
72 |
And I confirm "Student 2" in "user" search within the gradebook widget exists
|
72 |
And I confirm "Student 2" exists in the "Search users" search combo box
|
73 |
|
73 |
|
74 |
@accessibility
|
74 |
@accessibility
|