MDL-41369 Behat tests updated because of fixed messaging navigation
[moodle.git] / message / tests / behat / search_history.feature
... / ...
CommitLineData
1@core @core_message
2Feature: Users can search their message history
3 In order to read old messages
4 As a user
5 I need to search in my messages history
6
7 Background:
8 Given the following "users" exists:
9 | username | firstname | lastname | email |
10 | user1 | User | One | one@asd.com |
11 | user2 | User | Two | two@asd.com |
12 And I log in as "user1"
13 When I send "Give me your biscuits" message to "user2"
14 And I expand "My profile" node
15 And I click on "Messages" "link" in the "Navigation" "block"
16 And I fill in "Search people and messages" with "your biscuits"
17 And I press "Search people and messages"
18 Then I should see "User Two"
19 And I click on "context" "link" in the "User Two" table row
20 And I should see "Give me your biscuits"
21
22 @javascript
23 Scenario: Search message history with Javascript enabled
24
25 Scenario: Search message history with Javascript disabled