From 5b007b0125abd298d70e1f567ee9907d6ba1c3be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Castell=C3=B3n?= Date: Fri, 24 Jan 2020 12:17:36 +0100 Subject: [PATCH] MOBILE-3319 behat: Behat basic test for messages --- .../tests/behat/app_basic_usage.feature | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/mod/messages/tests/behat/app_basic_usage.feature b/mod/messages/tests/behat/app_basic_usage.feature index 142f4dd63..e03fe7502 100755 --- a/mod/messages/tests/behat/app_basic_usage.feature +++ b/mod/messages/tests/behat/app_basic_usage.feature @@ -92,4 +92,19 @@ Feature: Test basic usage of messages in app And I should see "Teacher teacher" And I press the back button in the app And I press "Teacher teacher" in the app - And I should see "heeey student" \ No newline at end of file + And I should see "heeey student" + + @app @3.8.0 @OK + Scenario: Search users + When I enter the app + And I log in as "student1" + Then the header should be "Acceptance test site" in the app + And I should see "Course 1" + And I press "Messages" in the app + And I press "addon.messages.search" in the app + And I set the field "Search" to "student2" in the app + And I press "search" in the app + Then I should see "Student2 student2" + And I set the field "Search" to "Teacher" in the app + And I press "search" in the app + Then I should see "Teacher teacher" \ No newline at end of file