1
0
mirror of https://github.com/moodle/moodle.git synced 2025-03-13 12:10:34 +01:00
moodle/message/tests/behat/search_history.feature

26 lines
922 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 "user2"
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