X7ROOT File Manager
Current Path:
/home/cbholdings/pasukulu/message/tests/behat
home
/
cbholdings
/
pasukulu
/
message
/
tests
/
behat
/
📁
..
📄
behat_message.php
(12.1 KB)
📄
block_user.feature
(2.87 KB)
📄
capability_message_any_user.feature
(1.92 KB)
📄
delete_messages.feature
(13.52 KB)
📄
favourite_conversations.feature
(4.53 KB)
📄
group_conversation.feature
(5.77 KB)
📄
message_admin_settings.feature
(1.57 KB)
📄
message_delete_conversation.feature
(6.42 KB)
📄
message_drawer_manage_contacts.feature
(3.97 KB)
📄
message_manage_notification_preferences.feature
(11.39 KB)
📄
message_manage_preferences.feature
(5.46 KB)
📄
message_preferences.feature
(1.35 KB)
📄
message_send_messages.feature
(4.01 KB)
📄
mute_conversations.feature
(4.67 KB)
📄
self_conversation.feature
(3.06 KB)
📄
unread_messages.feature
(4.55 KB)
Editing: self_conversation.feature
@core @core_message @javascript Feature: Self conversation In order to have self-conversations As a user I need to be able to send messages to myself and read them Background: 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 exists Given I log in as "student1" When I open messaging Then "Student 1" "core_message > Message" should exist And I select "Student" conversation in messaging And I should see "Personal space" Scenario: Self conversation can be unstarred Given I log in as "student1" When I open messaging Then "Student 1" "core_message > Message" should exist And I select "Student" conversation in messaging And I open contact menu And I click on "Unstar" "link" in the "Student 1" "core_message > Message header" And I go back in "view-conversation" message drawer And I open the "Starred" conversations list And I should not see "Student 1" in the "favourites" "core_message > Message list area" And I open the "Private" conversations list And I should see "Student 1" in the "messages" "core_message > Message list area" Scenario: Self conversation can be deleted Given I log in as "student1" When I open messaging Then "Student 1" "core_message > Message" should exist And I select "Student 1" conversation in messaging And I open contact menu And 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 drawer And I open the "Starred" conversations list And I should not see "Student 1" in the "favourites" "core_message > Message list area" And I open the "Private" conversations list And I should not see "Student 1" in the "messages" "core_message > Message list area" Scenario: Send a message to a self-conversation via message drawer Given I log in as "student1" When I open messaging Then "Student 1" "core_message > Message" should exist And I select "Student 1" conversation in messaging And I send "Hi!" message in the message area And 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 profile Given I log in as "student1" When I follow "Profile" in the user menu Then I should see "Message" And I click on "Message" "icon" And I send "Hi!" message in the message area And 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"
Upload File
Create Folder