You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
1.5 KiB
36 lines
1.5 KiB
@editor @editor_atto @atto @atto_equation @_bug_phantomjs
|
|
Feature: Atto equation editor
|
|
To teach maths to students, I need to write equations
|
|
|
|
@javascript
|
|
Scenario: Create an equation
|
|
Given I log in as "admin"
|
|
When I open my profile in edit mode
|
|
And I set the field "Description" to "<p>Equation test</p>"
|
|
# Set field on the bottom of page, so equation editor dialogue is visible.
|
|
And I expand all fieldsets
|
|
And I set the field "Picture description" to "Test"
|
|
And I select the text in the "Description" Atto editor
|
|
And I click on "Show more buttons" "button"
|
|
And I click on "Equation editor" "button"
|
|
And I set the field "Edit equation using" to " = 1 \div 0"
|
|
And I click on "\infty" "button"
|
|
And I click on "Save equation" "button"
|
|
And I click on "Update profile" "button"
|
|
And I follow "Profile" in the user menu
|
|
Then "\infty" "text" should exist
|
|
|
|
@javascript
|
|
Scenario: Edit an equation
|
|
Given I log in as "admin"
|
|
When I open my profile in edit mode
|
|
And I set the field "Description" to "<p>\( \pi \)</p>"
|
|
# Set field on the bottom of page, so equation editor dialogue is visible.
|
|
And I expand all fieldsets
|
|
And I set the field "Picture description" to "Test"
|
|
And I select the text in the "Description" Atto editor
|
|
And I click on "Show more buttons" "button"
|
|
And I click on "Equation editor" "button"
|
|
Then the field "Edit equation using" matches value " \pi "
|
|
And I click on "Save equation" "button"
|
|
And the field "Description" matches value "<p>\( \pi \)</p>"
|
|
|