mirrored from git://git.moodle.org/moodle.git
/
reply_message.feature
35 lines (34 loc) · 1.4 KB
/
reply_message.feature
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
@core @core_message @javascript
Feature: Reply message
In order to communicate with fellow users
As a user
I need to be able to reply to a message
Scenario: Reply to a message
Given the following "users" exist:
| username | firstname | lastname | email |
| user1 | User | 1 | user1@example.com |
| user2 | User | 2 | user2@example.com |
And the following config values are set as admin:
| messaging | 1 |
| messagingallusers | 1 |
And the following "courses" exist:
| fullname | shortname |
| Course 1 | C1 |
And the following "course enrolments" exist:
| user | course | role |
| user1 | C1 | student |
| user2 | C1 | student |
And the following config values are set as admin:
| messaging | 1 |
| messagingallusers | 1 |
And I log in as "user2"
And I send "User 2 to User 1" message to "User 1" user
And I log out
When I log in as "user1"
And I follow "Messages" in the user menu
And I click on "User 2" "text" in the "conversations" "message_area_region_content"
And I send "Reply to User 2" message in the message area
And I log out
Then I log in as "user2"
And I follow "Messages" in the user menu
And I should see "Reply to User 2" in the "conversations" "message_area_region_content"