AutorÃa | Ultima modificación | Ver Log |
@core @core_message @javascriptFeature: Mute and unmute conversationsIn order to manage my conversationsAs a userI need to be able to mute and unmute conversationsBackground:Given the following "courses" exist:| fullname | shortname | category | groupmode || Course 1 | C1 | 0 | 1 |And the following "users" exist:| username | firstname | lastname | email || student1 | Student | 1 | student1@example.com || student2 | Student | 2 | student2@example.com |And the following "course enrolments" exist:| user | course | role || student1 | C1 | student || student2 | C1 | student |And the following "groups" exist:| name | course | idnumber | enablemessaging || Group 1 | C1 | G1 | 1 |And the following "group members" exist:| user | group | course || student1 | G1 | C1 || student2 | G1 | C1 |And the following config values are set as admin:| messaging | 1 |And the following "private messages" exist:| user | contact | message || student1 | student2 | Hi! |Scenario: Mute a group conversationGiven I log in as "student1"When I open messagingAnd I open the "Group" conversations listThen "Group 1" "core_message > Message" should existAnd "muted" "icon_container" in the "Group 1" "core_message > Message" should not be visibleAnd I select "Group 1" conversation in messagingAnd "muted" "icon_container" in the "Group 1" "core_message > Message header" should not be visibleAnd I open contact menuAnd I click on "Mute" "link" in the "conversation-actions-menu" "region"And "muted" "icon_container" in the "Group 1" "core_message > Message header" should be visibleAnd I go back in "view-conversation" message drawerAnd "muted" "icon_container" in the "Group 1" "core_message > Message" should be visibleScenario: Mute a private conversationWhen I log in as "student1"And I open messagingThen I should see "Private"And I open the "Private" conversations listAnd I should see "Student 2"And "muted" "icon_container" in the "Student 2" "core_message > Message" should not be visibleAnd I select "Student 2" conversation in messagingAnd "muted" "icon_container" in the "[data-action='view-contact']" "css_element" should not be visibleAnd I open contact menuAnd I click on "Mute" "link" in the "conversation-actions-menu" "region"And "muted" "icon_container" in the "[data-action='view-contact']" "css_element" should be visibleAnd I go back in "view-conversation" message drawerAnd "muted" "icon_container" in the "Student 2" "core_message > Message" should be visibleScenario: Unmute a group conversationGiven the following "muted group conversations" exist:| user | group | course || student1 | G1 | C1 |When I log in as "student1"And I open messagingAnd I open the "Group" conversations listThen "Group 1" "core_message > Message" should existAnd "muted" "icon_container" in the "Group 1" "core_message > Message" should be visibleAnd I select "Group 1" conversation in messagingAnd "muted" "icon_container" in the "Group 1" "core_message > Message header" should be visibleAnd I open contact menuAnd I click on "Unmute" "link" in the "conversation-actions-menu" "region"And "muted" "icon_container" in the "Group 1" "core_message > Message header" should not be visibleAnd I go back in "view-conversation" message drawerAnd "muted" "icon_container" in the "Group 1" "core_message > Message" should not be visibleScenario: Unmute a private conversationGiven the following "muted private conversations" exist:| user | contact || student1 | student2 |When I log in as "student1"And I open messagingThen I should see "Private"And I open the "Private" conversations listAnd I should see "Student 2"And "muted" "icon_container" in the "Student 2" "core_message > Message" should be visibleAnd I select "Student 2" conversation in messagingAnd "muted" "icon_container" in the "[data-action='view-contact']" "css_element" should be visibleAnd I open contact menuAnd I click on "Unmute" "link" in the "conversation-actions-menu" "region"And "muted" "icon_container" in the "[data-action='view-contact']" "css_element" should not be visibleAnd I go back in "view-conversation" message drawerAnd "muted" "icon_container" in the "Student 2" "core_message > Message" should not be visible