HEX
Server: Apache
System: Linux webm010.cluster103.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: iestorre (46869)
PHP: 8.0.30
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/iestorre/moodleAW/moodle01/message/tests/behat/search_history.feature
@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