From 71505bed789abd87af7bda778aa1b0b15625f06d Mon Sep 17 00:00:00 2001 From: "Eloy Lafuente (stronk7)" Date: Tue, 5 Mar 2019 17:01:04 +0100 Subject: [PATCH] MDL-64943 behat: fix some remaining uses of old strings --- customfield/field/select/tests/behat/field.feature | 4 ++-- mod/choice/tests/behat/choice_availability.feature | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/customfield/field/select/tests/behat/field.feature b/customfield/field/select/tests/behat/field.feature index 6c43de12de6..46413653ffa 100644 --- a/customfield/field/select/tests/behat/field.feature +++ b/customfield/field/select/tests/behat/field.feature @@ -71,7 +71,7 @@ Feature: Managers can manage course custom fields select | Name | Test field | | Short name | testfield | And I press "Save changes" - And I should see "Please provide at least two options separated with a newline" in the "Menu options (one per line)" "form_row" + And I should see "Please provide at least two options, with each on a new line." in the "Menu options (one per line)" "form_row" And I set the field "Menu options (one per line)" to multiline: """ a @@ -79,7 +79,7 @@ Feature: Managers can manage course custom fields select """ And I set the field "Default value" to "c" And I press "Save changes" - And I should see "Default value must be one of the options from the list above" in the "Default value" "form_row" + And I should see "The default value must be one of the options from the list above" in the "Default value" "form_row" And I set the field "Default value" to "b" And I press "Save changes" And "testfield" "text" should exist in the "Test field" "table_row" diff --git a/mod/choice/tests/behat/choice_availability.feature b/mod/choice/tests/behat/choice_availability.feature index 2fcd4c48b37..0ed93dbba96 100644 --- a/mod/choice/tests/behat/choice_availability.feature +++ b/mod/choice/tests/behat/choice_availability.feature @@ -33,7 +33,7 @@ Feature: Restrict availability of the choice module to a deadline When I log in as "student1" And I am on "Course 1" course homepage And I follow "Choice name" - Then I should see "Sorry, this activity is not available until" + Then I should see "This activity is not available until" Scenario: Enable the choice activity with a start deadline in the past Given I add a "Choice" to section "1" and I fill the form with: @@ -85,4 +85,4 @@ Feature: Restrict availability of the choice module to a deadline When I log in as "student1" And I am on "Course 1" course homepage And I follow "Choice name" - Then I should see "Sorry, this activity closed on" + Then I should see "This activity closed on"