[ Index ] |
PHP Cross Reference of Unnamed Project |
[Summary view] [Print] [Text view]
1 @core_enrol @core_group 2 Feature: Users can be added to multiple groups at once 3 In order to manage group membership effectively 4 As a user 5 I need to add another user to multiple groups 6 7 Background: 8 Given the following "users" exist: 9 | username | firstname | lastname | email | 10 | teacher1 | Teacher | 1 | teacher1@example.com | 11 | student1 | Student | 1 | student1@example.com | 12 And the following "courses" exist: 13 | fullname | shortname | format | 14 | Course 1 | C1 | topics | 15 And the following "groups" exist: 16 | name | course | idnumber | 17 | Group 1 | C1 | G1 | 18 | Group 2 | C1 | G2 | 19 | Group 3 | C1 | G3 | 20 And the following "course enrolments" exist: 21 | user | course | role | 22 | teacher1 | C1 | editingteacher | 23 | student1 | C1 | editingteacher | 24 25 Scenario: Adding a user to one group 26 Given I log in as "teacher1" 27 And I follow "Course 1" 28 And I navigate to "Enrolled users" node in "Course administration > Users" 29 And I click on "Add user into group" "link" in the "student1" "table_row" 30 When I set the field "Add user into group" to "Group 1" 31 And I press "Save changes" 32 Then I should see "Group 1" 33 34 Scenario: Adding a user to multiple group 35 Given I log in as "teacher1" 36 And I follow "Course 1" 37 And I navigate to "Enrolled users" node in "Course administration > Users" 38 And I click on "Add user into group" "link" in the "student1" "table_row" 39 When I set the field "Add user into group" to "Group 1, Group 2, Group 3" 40 And I press "Save changes" 41 Then I should see "Group 1" 42 And I should see "Group 2" 43 And I should see "Group 3"
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Thu Aug 11 10:00:09 2016 | Cross-referenced by PHPXref 0.7.1 |