AutorÃa | Ultima modificación | Ver Log |
@core @core_message @javascriptFeature: Self conversationIn order to have self-conversationsAs a userI need to be able to send messages to myself and read themBackground:Given the following "users" exist:| username | firstname | lastname | email || student1 | Student | 1 | student1@example.com |And the following config values are set as admin:| messaging | 1 || messagingminpoll | 1 |Scenario: Self conversation existsGiven I log in as "student1"When I open messagingThen "Student 1" "core_message > Message" should existAnd I select "Student" conversation in messagingAnd I should see "Personal space"Scenario: Self conversation can be unstarredGiven I log in as "student1"When I open messagingThen "Student 1" "core_message > Message" should existAnd I select "Student" conversation in messagingAnd I open contact menuAnd I click on "Unstar" "link" in the "Student 1" "core_message > Message header"And I go back in "view-conversation" message drawerAnd I open the "Starred" conversations listAnd I should not see "Student 1" in the "favourites" "core_message > Message list area"And I open the "Private" conversations listAnd I should see "Student 1" in the "messages" "core_message > Message list area"Scenario: Self conversation can be deletedGiven I log in as "student1"When I open messagingThen "Student 1" "core_message > Message" should existAnd I select "Student 1" conversation in messagingAnd I open contact menuAnd I click on "Delete conversation" "link" in the "Student 1" "core_message > Message header"And I should see "Delete"And I click on "//button[@data-action='confirm-delete-conversation']" "xpath_element"And I should not see "Delete"And I go back in "view-conversation" message drawerAnd I open the "Starred" conversations listAnd I should not see "Student 1" in the "favourites" "core_message > Message list area"And I open the "Private" conversations listAnd I should not see "Student 1" in the "messages" "core_message > Message list area"Scenario: Send a message to a self-conversation via message drawerGiven I log in as "student1"When I open messagingThen "Student 1" "core_message > Message" should existAnd I select "Student 1" conversation in messagingAnd I send "Hi!" message in the message areaAnd I should see "Hi!" in the "Student 1" "core_message > Message conversation"And I should see "##today##%d %B##" in the "Student 1" "core_message > Message conversation"Scenario: Send a message to a self-conversation via user profileGiven I log in as "student1"When I follow "Profile" in the user menuThen I should see "Message"And I press "Message"And I send "Hi!" message in the message areaAnd I should see "Hi!" in the "Student 1" "core_message > Message conversation"And I should see "##today##%d %B##" in the "Student 1" "core_message > Message conversation"