Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 6... Línea 6...
6
 
6
 
7
  @javascript
7
  @javascript
8
  Scenario: An administrator can control the enabled state of TinyMCE subplugins using JavaScript
8
  Scenario: An administrator can control the enabled state of TinyMCE subplugins using JavaScript
9
    Given I am logged in as "admin"
9
    Given I am logged in as "admin"
10
    And I navigate to "Plugins > Text editors > TinyMCE editor > General settings" in site administration
10
    And I navigate to "Plugins > Text editors > TinyMCE editor > General settings" in site administration
11
    When I click on "Disable Equation editor" "link"
11
    When I toggle the "Disable Equation editor" admin switch "off"
12
    Then I should see "Equation editor disabled."
-
 
13
    And "Disable Equation editor" "link" should not exist
-
 
14
    But "Enable Equation editor" "link" should exist
12
    And I should see "Equation editor disabled."
15
    When I click on "Enable Equation editor" "link"
13
    And I reload the page
16
    Then I should see "Equation editor enabled."
14
    Then I should see "Enable Equation editor"
17
    And "Enable Equation editor" "link" should not exist
-
 
18
    But "Disable Equation editor" "link" should exist
-
 
19
 
-
 
20
  Scenario: An administrator can control the enabled state of TinyMCE subplugins without JavaScript
-
 
21
    Given I am logged in as "admin"
-
 
22
    And I navigate to "Plugins > Text editors > TinyMCE editor > General settings" in site administration
-
 
23
    When I click on "Disable Equation editor" "link"
15
    And I toggle the "Enable Equation editor" admin switch "on"
24
    Then I should see "Equation editor disabled."
-
 
25
    And "Disable Equation editor" "link" should not exist
-
 
26
    But "Enable Equation editor" "link" should exist
16
    And I should see "Equation editor enabled."
27
    When I click on "Enable Equation editor" "link"
17
    And I reload the page
28
    Then I should see "Equation editor enabled."
-
 
29
    And "Enable Equation editor" "link" should not exist
-