diff --git a/mod/course/tests/behat/app_courselist.feature b/mod/course/tests/behat/app_courselist.feature index fc8adab44..08788755d 100644 --- a/mod/course/tests/behat/app_courselist.feature +++ b/mod/course/tests/behat/app_courselist.feature @@ -91,10 +91,6 @@ Feature: Test course list shown on app start tab And I should find "Course 5" in the app And I should find "Toad 6" in the app - When I press "Display options" near "Course overview" in the app - And I press "Filter my courses" in the app - - # TODO field should be "Filter my courses" And I set the field "search text" to "fr" in the app Then I should find "C3" in the app @@ -110,8 +106,7 @@ Feature: Test course list shown on app start tab And I should not find "Course 5" in the app And I should not find "Toad 6" in the app - When I press "Display options" near "Course overview" in the app - And I press "Filter my courses" in the app + When I set the field "search text" to "" in the app Then I should find "C1" in the app And I should find "C2" in the app And I should find "C3" in the app diff --git a/tests/behat/behat_app.php b/tests/behat/behat_app.php index c3c4a0ada..87c23602c 100644 --- a/tests/behat/behat_app.php +++ b/tests/behat/behat_app.php @@ -733,7 +733,7 @@ class behat_app extends behat_base { * Currently this only works for input fields which must be identified using a partial or * exact match on the placeholder text. * - * @Given /^I set the field "((?:[^"]|\\")+)" to "((?:[^"]|\\")+)" in the app$/ + * @Given /^I set the field "((?:[^"]|\\")+)" to "((?:[^"]|\\")*)" in the app$/ * @param string $field Text identifying field * @param string $value Value for field * @throws DriverException If the field set doesn't work