1
0
mirror of https://github.com/moodle/moodle.git synced 2025-04-25 10:26:17 +02:00

MDL-64943 behat: fix some remaining uses of old strings

This commit is contained in:
Eloy Lafuente (stronk7) 2019-03-05 17:01:04 +01:00
parent 8ab1bd2f5e
commit 71505bed78
2 changed files with 4 additions and 4 deletions
customfield/field/select/tests/behat
mod/choice/tests/behat

@ -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"

@ -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"