Permalink
Browse files

MDL-47960 messages: behat failures caused by user menu

  • Loading branch information...
danpoltawski authored and marinaglancy committed Oct 29, 2014
1 parent e0a1801 commit 490d009a5714b45cf408e480d7d230b90019cecc
@@ -11,8 +11,7 @@ Feature: Block users from contacting me
| user1 | User | One | one@asd.com |
| user2 | User | Two | two@asd.com |
And I log in as "user1"
And I expand "My profile" node
And I follow "Messages"
And I navigate to "Messages" node in "My profile"
And I set the field "Search people and messages" to "User Two"
And I press "Search people and messages"
When I click on "Block contact" "link" in the "User Two" "table_row"
@@ -21,8 +20,7 @@ Feature: Block users from contacting me
And I should see "User Two"
And I log out
And I log in as "user2"
And I expand "My profile" node
And I follow "Messages"
And I navigate to "Messages" node in "My profile"
And I set the field "Search people and messages" to "User One"
And I press "Search people and messages"
And I follow "Send message to User One"
@@ -22,8 +22,7 @@ Feature: Message history displays correctly
And I send "Message 10 from user1 to user2" message to "User Two" user
Scenario: View sent messages
When I expand "My profile" node
And I click on "Messages" "link" in the "Navigation" "block"
When I navigate to "Messages" node in "My profile"
And I set the field "Search people and messages" to "User Two"
And I press "Search people and messages"
And I click on "Message history" "link" in the "User Two" "table_row"
@@ -38,8 +37,7 @@ Feature: Message history displays correctly
Scenario: View received messages
When I log out
And I log in as "user2"
And I expand "My profile" node
And I click on "Messages" "link" in the "Navigation" "block"
And I navigate to "Messages" node in "My profile"
And I follow "User One (10)"
# Should show all of the user's unread messages.
Then I should see "Message 1 from user1 to user2"
@@ -12,8 +12,7 @@ Feature: Manage contacts
And I log in as "user1"
And I send "Message 1 from user1 to user2" message to "User Two" user
And I send "Message 2 from user1 to user2" message to "User Two" user
And I expand "My profile" node
And I click on "Messages" "link" in the "Navigation" "block"
And I navigate to "Messages" node in "My profile"
And I set the field "Search people and messages" to "User Two"
And I press "Search people and messages"
When I click on "Add contact" "link" in the "User Two" "table_row"
@@ -30,8 +30,7 @@ Feature: An user can message course participants
And I press "Preview"
And I press "Send message"
And I follow "Home"
And I expand "My profile" node
And I follow "Messages"
And I navigate to "Messages" node in "My profile"
And I set the field "Message navigation:" to "Recent conversations"
Then I should see "Here it is, the message content"
And I should see "Student 1"
@@ -11,8 +11,7 @@ Feature: Users can search their message history
| user2 | User | Two | two@asd.com |
And I log in as "user1"
When I send "Give me your biscuits" message to "User Two" user
And I expand "My profile" node
And I click on "Messages" "link" in the "Navigation" "block"
And I navigate to "Messages" node in "My profile"
And I set the field "Search people and messages" to "your biscuits"
And I press "Search people and messages"
Then I should see "User Two"

0 comments on commit 490d009

Please sign in to comment.