1 |
efrain |
1 |
@tool @tool_customlang
|
|
|
2 |
Feature: Within a moodle instance, an administrator should be able to modify langstrings for the entire Moodle installation.
|
|
|
3 |
In order to change langstrings in the adminsettings of the instance,
|
|
|
4 |
As an admin
|
|
|
5 |
I need to be able to access and change values in the the language customisation of the language pack.
|
|
|
6 |
|
|
|
7 |
Background:
|
|
|
8 |
# This is a very slow running test and on slow databases can take minutes to complete.
|
|
|
9 |
Given I mark this test as slow setting a timeout factor of 4
|
|
|
10 |
|
|
|
11 |
And I log in as "admin"
|
|
|
12 |
And I navigate to "Language > Language customisation" in site administration
|
|
|
13 |
And I set the field "lng" to "en"
|
|
|
14 |
And I press "Open language pack for editing"
|
|
|
15 |
And I press "Continue"
|
|
|
16 |
And I set the field "Show strings of these components" to "moodle.php"
|
|
|
17 |
And I set the field "String identifier" to "moodledocslink"
|
|
|
18 |
And I press "Show strings"
|
|
|
19 |
And I set the field "core/moodledocslink" to "moodle documents"
|
|
|
20 |
|
|
|
21 |
@javascript
|
|
|
22 |
Scenario: Edit an string but don't save it to lang pack.
|
|
|
23 |
When I press "Apply changes and continue editing"
|
|
|
24 |
Then I should not see "moodle documents" in the "page-footer" "region"
|
|
|
25 |
And I should see "Documentation for this page" in the "page-footer" "region"
|
|
|
26 |
|
|
|
27 |
@javascript
|
|
|
28 |
Scenario: Customize an string as admin and save it to lang pack.
|
|
|
29 |
Given I press "Save changes to the language pack"
|
|
|
30 |
And I should see "There are 1 modified strings."
|
|
|
31 |
When I click on "Continue" "button"
|
|
|
32 |
Then I should not see "Documentation for this page" in the "page-footer" "region"
|
|
|
33 |
And I should see "moodle documents" in the "page-footer" "region"
|