Línea 83... |
Línea 83... |
83 |
And I log out
|
83 |
And I log out
|
84 |
And I log in as "student2"
|
84 |
And I log in as "student2"
|
85 |
And I open messaging
|
85 |
And I open messaging
|
86 |
And I select "Student 1" conversation in messaging
|
86 |
And I select "Student 1" conversation in messaging
|
87 |
And I should see "Hi!" in the "Student 1" "core_message > Message conversation"
|
87 |
And I should see "Hi!" in the "Student 1" "core_message > Message conversation"
|
- |
|
88 |
|
- |
|
89 |
Scenario: Unsent messages will notify users and give them a chance to send it
|
- |
|
90 |
Given I log in as "student1"
|
- |
|
91 |
And I open messaging
|
- |
|
92 |
And I send "Hi!" message to "Student 2" user
|
- |
|
93 |
And I select "Student 2" user in messaging
|
- |
|
94 |
And I set the field "Write a message..." to "What you doing?"
|
- |
|
95 |
When I follow "Profile" in the user menu
|
- |
|
96 |
Then I should see "You have an unsent message. It will be lost if you leave this page."
|
- |
|
97 |
And I press "Send message"
|
- |
|
98 |
And I should see "What you doing?" in the "Student 2" "core_message > Message conversation"
|