Then the "groups" select box should contain "Group 1 (1)"
And the "groups" select box should contain "Group 2 (1)"
And I set the field "groups" to "Group 1 (1)"
- And the "members" select box should contain "Student 1"
+ And the "members" select box should contain "Student 1 (student1@example.com)"
And I set the field "groups" to "Group 2 (1)"
- And the "members" select box should contain "Student 2"
+ And the "members" select box should contain "Student 2 (student2@example.com)"
Scenario: Add cohorts and cohort members with data generator
Given the following "categories" exist:
And I navigate to "Users > Groups" in current page administration
# Select (multi-select & AJAX) - Checking "I set the field" and "select box should contain".
And I set the field "groups" to "Group 2"
- And the "members" select box should contain "Student 2"
- And the "members" select box should contain "Student 3"
- And the "members" select box should not contain "Student 1"
+ And the "members" select box should contain "Student 2 (s2@example.com)"
+ And the "members" select box should contain "Student 3 (s3@example.com)"
+ And the "members" select box should not contain "Student 1 (s1@example.com)"
And I set the field "groups" to "Group 1"
- And the "members" select box should contain "Student 1"
- And the "members" select box should contain "Student 2"
- And the "members" select box should not contain "Student 3"
+ And the "members" select box should contain "Student 1 (s1@example.com)"
+ And the "members" select box should contain "Student 2 (s2@example.com)"
+ And the "members" select box should not contain "Student 3 (s3@example.com)"
# Checkbox (AJAX) - Checking "I set the field" and "I set the following fields to these values".
And I am on "Course 1" course homepage
And I add a "Lesson" to section "1"
And I am on "Maths" course homepage
And I navigate to "Users > Groups" in current page administration
And I set the field "groups" to "Section 1 (1)"
- And the "members" select box should contain "Tom Jones"
+ And the "members" select box should contain "Tom Jones (jonest@example.com)"
@javascript
Scenario: Upload users enrolling them on courses and groups applying defaults