Skip to content

Commit

Permalink
MDL-47960 messages: behat failures caused by user menu
Browse files Browse the repository at this point in the history
  • Loading branch information
danpoltawski authored and marinaglancy committed Oct 30, 2014
1 parent e0a1801 commit 490d009
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 14 deletions.
6 changes: 2 additions & 4 deletions message/tests/behat/block_users.feature
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand Down
6 changes: 2 additions & 4 deletions message/tests/behat/display_history.feature
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand Down
3 changes: 1 addition & 2 deletions message/tests/behat/manage_contacts.feature
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 1 addition & 2 deletions message/tests/behat/message_participants.feature
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 1 addition & 2 deletions message/tests/behat/search_history.feature
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 490d009

Please sign in to comment.