Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@tool @tool_customlang
2
Feature: Within a moodle instance, an administrator should be able to export modified langstrings.
3
  In order to export modified langstrings in the adminsettings of the instance,
4
  As an admin
5
  I need to be able to export the php-files of the language customisation of a language.
6
 
7
  Background:
8
    # This is a very slow running feature 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
  @javascript
12
  Scenario: Export button should not appear if no customization is made
13
    Given I log in as "admin"
14
    And I navigate to "Language > Language customisation" in site administration
15
    And I set the field "lng" to "en"
16
    Then I should see "Open language pack for editing"
17
    And I should not see "Export custom strings"
18
 
19
  @javascript
20
  Scenario: Export button should not appear if no customization is saved into langpack
21
    Given I log in as "admin"
22
    And I navigate to "Language > Language customisation" in site administration
23
    And I set the field "lng" to "en"
24
    And I press "Open language pack for editing"
25
    And I press "Continue"
26
    And I set the field "Show strings of these components" to "moodle.php"
27
    And I set the field "String identifier" to "accept"
28
    And I press "Show strings"
29
    And I set the field "core/accept" to "Accept-custom_export"
30
    When I press "Apply changes and continue editing"
31
    And I navigate to "Language > Language customisation" in site administration
32
    And I set the field "lng" to "en"
33
    Then I should see "Open language pack for editing"
34
    And I should see "There are 1 modified strings."
35
    And I should not see "Export custom strings"
36
 
37
  @javascript
38
  Scenario: Export the php-file including a customised langstring.
39
    Given I log in as "admin"
40
    And I navigate to "Language > Language customisation" in site administration
41
    And I set the field "lng" to "en"
42
    And I press "Open language pack for editing"
43
    And I press "Continue"
44
    And I set the field "Show strings of these components" to "moodle.php"
45
    And I set the field "String identifier" to "accept"
46
    And I press "Show strings"
47
    And I set the field "core/accept" to "Accept-custom_export"
48
    When I press "Save changes to the language pack"
49
    And I should see "There are 1 modified strings."
50
    And I click on "Continue" "button"
51
    Then I set the field "lng" to "en"
52
    And I click on "Export custom strings" "button"
53
    And I set the field "Select component(s) to export" to "moodle.php"