Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@editor @editor_tiny @tiny_equation
2
Feature: Equation editor
3
  To teach maths to students, I need to write equations
4
 
5
  @javascript
6
  Scenario: Create an equation using TinyMCE
7
    Given I log in as "admin"
8
    When I open my profile in edit mode
9
    And I set the field "Description" to "<p>Equation test</p>"
10
    # Set field on the bottom of page, so equation editor dialogue is visible.
11
    And I expand all fieldsets
12
    And I set the field "Picture description" to "Test"
13
    And I expand all toolbars for the "Description" TinyMCE editor
14
    And I click on the "Equation editor" button for the "Description" TinyMCE editor
15
    And the "class" attribute of "Edit equation using" "field" should contain "text-ltr"
16
    And I set the field "Edit equation using" to " = 1 \div 0"
17
    And I click on "\infty" "button"
18
    And I click on "Save equation" "button"
19
    And I click on "Update profile" "button"
20
    And I follow "Profile" in the user menu
21
    Then "\infty" "text" should exist
22
 
23
  @javascript
24
  Scenario: Edit an equation using TinyMCE
25
    Given I log in as "admin"
26
    When I open my profile in edit mode
27
    And I set the field "Description" to "<p>\( \pi \)</p>"
28
    # Set field on the bottom of page, so equation editor dialogue is visible.
29
    And I expand all fieldsets
30
    And I set the field "Picture description" to "Test"
31
    And I expand all toolbars for the "Description" TinyMCE editor
32
    And I click on the "Equation editor" button for the "Description" TinyMCE editor
33
    And the "class" attribute of "Edit equation using" "field" should contain "text-ltr"
34
    Then the field "Edit equation using" matches value " \pi "
35
    And I click on "Save equation" "button"
36
    And the field "Description" matches value "<p>\( \pi \)</p>"