From 1e40093bfa4809d45fe586f022854eeb87d08637 Mon Sep 17 00:00:00 2001 From: Sara Arjona Date: Mon, 3 May 2021 09:32:04 +0200 Subject: [PATCH] MDL-66431 behat: fix goutte + classic failure --- mod/choice/tests/behat/limit_responses.feature | 3 +-- mod/survey/tests/behat/survey_types.feature | 6 ++---- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/mod/choice/tests/behat/limit_responses.feature b/mod/choice/tests/behat/limit_responses.feature index 1c4df351134..6ded521a89c 100644 --- a/mod/choice/tests/behat/limit_responses.feature +++ b/mod/choice/tests/behat/limit_responses.feature @@ -26,8 +26,7 @@ Feature: Limit choice responses And I log in as "teacher1" And I am on "Course 1" course homepage And I follow "Choice name" - And I click on "Actions menu" "link" - And I follow "Edit settings" + And I navigate to "Edit settings" in current page administration And I set the field "Limit 1" to "1" And I press "Save and display" And I log out diff --git a/mod/survey/tests/behat/survey_types.feature b/mod/survey/tests/behat/survey_types.feature index 75a269ab05f..42682d83a4b 100644 --- a/mod/survey/tests/behat/survey_types.feature +++ b/mod/survey/tests/behat/survey_types.feature @@ -26,14 +26,12 @@ Feature: A teacher can set three types of survey activity And I press "Save and return to course" And I follow "Test survey name" Then I should see "Attitudes Towards Thinking and Learning" - And I click on "Actions menu" "link" - And I follow "Edit settings" + And I navigate to "Edit settings" in current page administration And I set the following fields to these values: | Survey type | Critical incidents | And I press "Save and display" And I should see "At what moment in class were you most engaged as a learner?" - And I click on "Actions menu" "link" - And I follow "Edit settings" + And I navigate to "Edit settings" in current page administration And I set the following fields to these values: | Survey type | COLLES (Preferred and Actual) | And I press "Save and display"