AutorÃa | Ultima modificación | Ver Log |
@tool @tool_customlangFeature: Within a moodle instance, an administrator should be able to modify langstrings for the entire Moodle installation.In order to change langstrings in the adminsettings of the instance,As an adminI need to be able to access and change values in the the language customisation of the language pack.Background:# This is a very slow running test and on slow databases can take minutes to complete.Given I mark this test as slow setting a timeout factor of 4And I log in as "admin"And I navigate to "Language > Language customisation" in site administrationAnd I set the field "lng" to "en"And I press "Open language pack for editing"And I press "Continue"And I set the field "Show strings of these components" to "moodle.php"And I set the field "String identifier" to "moodledocslink"And I press "Show strings"And I set the field "core/moodledocslink" to "moodle documents"@javascriptScenario: Edit an string but don't save it to lang pack.When I press "Apply changes and continue editing"Then I should not see "moodle documents" in the "page-footer" "region"And I should see "Documentation for this page" in the "page-footer" "region"@javascriptScenario: Customize an string as admin and save it to lang pack.Given I press "Save changes to the language pack"And I should see "There are 1 modified strings."When I click on "Continue" "button"Then I should not see "Documentation for this page" in the "page-footer" "region"And I should see "moodle documents" in the "page-footer" "region"