AutorÃa | Ultima modificación | Ver Log |
@core @core_groupFeature: Bulk update group messaging statusIn order to update group messaging settings in bulkAs a teacherI need to be able to select the groups and update their messaging settings using the buttons provided.Background:Given the following "courses" exist:| fullname | shortname | format || Course 1 | C1 | topics |And the following "users" exist:| username | firstname | lastname | email || teacher1 | Teacher | 1 | teacher1@example.com |And the following "course enrolments" exist:| user | course | role || teacher1 | C1 | editingteacher |And the following "groups" exist:| course | name | idnumber || C1 | Group-A-Test | GA || C1 | Group-B-Test | GB |And I am on the "Course 1" "groups" page logged in as "teacher1"@javascriptScenario: Bulk enable messaging in groupsGiven I set the field "groups" to "Group-A-Test (0)"And I press "Edit group settings"And I set the field "id_enablemessaging" to "0"And I press "Save changes"And I wait until the page is readyAnd the field "groups" matches value "Group-A-Test (0)"And I press "Enable messaging"And I wait until the page is readyAnd I should see "Successfully enabled messaging in 1 group(s)"And I set the field "groups" to "Group-A-Test (0)"And I press "Edit group settings"Then the field "id_enablemessaging" matches value "1"@javascriptScenario: Bulk disable messaging in groupsGiven I set the field "groups" to "Group-A-Test (0)"And I press "Edit group settings"And I set the field "id_enablemessaging" to "1"And I press "Save changes"And I wait until the page is readyAnd the field "groups" matches value "Group-A-Test (0)"And I press "Disable messaging"And I wait until the page is readyAnd I should see "Successfully disabled messaging in 1 group(s)"And I set the field "groups" to "Group-A-Test (0)"And I press "Edit group settings"Then the field "id_enablemessaging" matches value "0"@javascriptScenario: Messaging buttons are enabled when a group is selectedGiven I set the field "groups" to "Group-A-Test (0)"Then the field "groups" matches value "Group-A-Test (0)"And the "Enable messaging" "button" should be enabledAnd the "Disable messaging" "button" should be enabled