MDL-65397 lang: Use the new strings in Behat scenarios
authorDavid Mudrák <david@moodle.com>
Mon, 29 Apr 2019 09:37:32 +0000 (11:37 +0200)
committerDavid Mudrák <david@moodle.com>
Mon, 29 Apr 2019 09:47:10 +0000 (11:47 +0200)
admin/tool/analytics/tests/behat/restoredefault.feature
course/tests/behat/customfields_locked.feature
course/tests/behat/customfields_visibility.feature
customfield/field/text/tests/behat/field.feature
customfield/tests/behat/edit_fields_settings.feature
customfield/tests/behat/required_field.feature
customfield/tests/behat/unique_field.feature

index 74ff239..f819e5f 100644 (file)
@@ -65,7 +65,7 @@ Feature: Restoring default models
     And I should see "Analytics models"
     And I should see "No teaching"
     When I click on "Restore default models" "link"
-    Then I should see "All default models provided by the Moodle core and installed plugins have been already created. No new models were found, there is nothing to restore."
+    Then I should see "All default models provided by core and installed plugins have been created. No new models were found; there is nothing to restore."
     And I click on "Back" "link"
     And I should see "Analytics models"
 
index a3c73b6..45d55dd 100644 (file)
@@ -23,7 +23,7 @@ Feature: Fields locked control where they are displayed
     When I log in as "admin"
     And I navigate to "Courses > Course custom fields" in site administration
     And I click on "Add a new custom field" "link"
-    And I click on "Text field" "link"
+    And I click on "Short text" "link"
     And I set the following fields to these values:
       | Name       | Test field |
       | Short name | testfield  |
index e8650a3..802f6fa 100644 (file)
@@ -23,7 +23,7 @@ Feature: The visibility of fields control where they are displayed
     When I log in as "admin"
     And I navigate to "Courses > Course custom fields" in site administration
     And I click on "Add a new custom field" "link"
-    And I click on "Text field" "link"
+    And I click on "Short text" "link"
     And I set the following fields to these values:
       | Name       | Test field |
       | Short name | testfield  |
@@ -43,7 +43,7 @@ Feature: The visibility of fields control where they are displayed
     When I log in as "admin"
     And I navigate to "Courses > Course custom fields" in site administration
     And I click on "Add a new custom field" "link"
-    And I click on "Text field" "link"
+    And I click on "Short text" "link"
     And I set the following fields to these values:
       | Name       | Test field  |
       | Short name | testfield   |
@@ -63,7 +63,7 @@ Feature: The visibility of fields control where they are displayed
     When I log in as "admin"
     And I navigate to "Courses > Course custom fields" in site administration
     And I click on "Add a new custom field" "link"
-    And I click on "Text field" "link"
+    And I click on "Short text" "link"
     And I set the following fields to these values:
       | Name       | Test field     |
       | Short name | testfield      |
index e1bed82..da4ad41 100644 (file)
@@ -13,7 +13,7 @@ Feature: Managers can manage course custom fields text
 
   Scenario: Create a custom course text field
     When I click on "Add a new custom field" "link"
-    And I click on "Text field" "link"
+    And I click on "Short text" "link"
     And I set the following fields to these values:
       | Name       | Test field |
       | Short name | testfield  |
@@ -23,7 +23,7 @@ Feature: Managers can manage course custom fields text
 
   Scenario: Edit a custom course text field
     When I click on "Add a new custom field" "link"
-    And I click on "Text field" "link"
+    And I click on "Short text" "link"
     And I set the following fields to these values:
       | Name       | Test field |
       | Short name | testfield  |
@@ -40,7 +40,7 @@ Feature: Managers can manage course custom fields text
   @javascript
   Scenario: Delete a custom course text field
     When I click on "Add a new custom field" "link"
-    And I click on "Text field" "link"
+    And I click on "Short text" "link"
     And I set the following fields to these values:
       | Name       | Test field |
       | Short name | testfield  |
@@ -64,7 +64,7 @@ Feature: Managers can manage course custom fields text
       | teacher1 | C1     | editingteacher |
     And I navigate to "Courses > Course custom fields" in site administration
     And I click on "Add a new custom field" "link"
-    And I click on "Text field" "link"
+    And I click on "Short text" "link"
     And I set the following fields to these values:
       | Name       | See more on website       |
       | Short name | testfield                 |
@@ -94,11 +94,11 @@ Feature: Managers can manage course custom fields text
       | teacher1 | C1     | editingteacher |
     And I navigate to "Courses > Course custom fields" in site administration
     And I click on "Add a new custom field" "link"
-    And I click on "Text field" "link"
+    And I click on "Short text" "link"
     And I set the following fields to these values:
       | Name       | Test field |
       | Short name | testfield  |
-      | Maximum length | 3          |
+      | Maximum number of characters | 3          |
     And I press "Save changes"
     And I log out
     Then I log in as "teacher1"
@@ -107,7 +107,7 @@ Feature: Managers can manage course custom fields text
     And I set the following fields to these values:
       | Test field | 1234 |
     And I press "Save and display"
-    Then I should see "This field maximum length is 3"
+    Then I should see "The maximum number of characters allowed in this field is 3."
 
   Scenario: A text field with a default value must be shown on listing but allow empty values that will not be shown
     Given the following "users" exist:
@@ -121,7 +121,7 @@ Feature: Managers can manage course custom fields text
       | teacher1 | C1     | editingteacher |
     And I navigate to "Courses > Course custom fields" in site administration
     And I click on "Add a new custom field" "link"
-    And I click on "Text field" "link"
+    And I click on "Short text" "link"
     And I set the following fields to these values:
       | Name          | Test field  |
       | Short name    | testfield   |
index 247f5ce..90bfacd 100644 (file)
@@ -101,7 +101,7 @@ Feature: Teachers can edit course custom fields
     When I log in as "admin"
     And I navigate to "Courses > Course custom fields" in site administration
     And I click on "Add a new custom field" "link"
-    And I click on "Text field" "link"
+    And I click on "Short text" "link"
     And I set the following fields to these values:
       | Name       | Test field |
     And I press "Save changes"
index d0aea96..56c0f23 100644 (file)
@@ -22,7 +22,7 @@ Feature: Requiredness The course custom fields can be mandatory or not
     When I log in as "admin"
     And I navigate to "Courses > Course custom fields" in site administration
     And I click on "Add a new custom field" "link"
-    And I click on "Text field" "link"
+    And I click on "Short text" "link"
     And I set the following fields to these values:
       | Name       | Test field |
       | Short name | testfield  |
@@ -43,7 +43,7 @@ Feature: Requiredness The course custom fields can be mandatory or not
     When I log in as "admin"
     And I navigate to "Courses > Course custom fields" in site administration
     And I click on "Add a new custom field" "link"
-    And I click on "Text field" "link"
+    And I click on "Short text" "link"
     And I set the following fields to these values:
       | Name       | Test field |
       | Short name | testfield  |
index 8fe7063..e834eaa 100644 (file)
@@ -22,7 +22,7 @@ Feature: Uniqueness The course custom fields can be mandatory or not
     When I log in as "admin"
     And I navigate to "Courses > Course custom fields" in site administration
     And I click on "Add a new custom field" "link"
-    And I click on "Text field" "link"
+    And I click on "Short text" "link"
     And I set the following fields to these values:
       | Name        | Test field |
       | Short name  | testfield  |