From 1091aca74f6703539ec4ee2688fc5d79f9546a48 Mon Sep 17 00:00:00 2001 From: David Monllao Date: Mon, 8 Apr 2013 11:51:08 +0800 Subject: [PATCH] MDL-38953 behat: New test According to MDLQA-136, users can search their message history. --- message/tests/behat/search_history.feature | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 message/tests/behat/search_history.feature diff --git a/message/tests/behat/search_history.feature b/message/tests/behat/search_history.feature new file mode 100644 index 00000000000..55e235125b3 --- /dev/null +++ b/message/tests/behat/search_history.feature @@ -0,0 +1,24 @@ +@core_message +Feature: Users can search their message history + In order to read old messages + As a moodle 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 follow "Messages" + 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 -- 2.36.1