moodle/message/tests/behat/search_history.feature

26 lines
932 B
Gherkin

@core @core_message
Feature: Users can search their message history
In order to read old messages
As a user
I need to search in my messages history
Background:
Given the following "users" exists:
| username | firstname | lastname | email |
| user1 | User | One | one@asd.com |
| 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 fill in "Search people and messages" with "your biscuits"
And I press "Search people and messages"
Then I should see "User Two"
And I click on "context" "link" in the "User Two" "table_row"
And I should see "Give me your biscuits"
@javascript
Scenario: Search message history with Javascript enabled
Scenario: Search message history with Javascript disabled