Skip to content
Permalink
Browse files

MDL-46387 editor_atto: Add behat test for sub/sup

  • Loading branch information...
dthies committed Aug 16, 2015
1 parent dc7e49f commit 9957c7f7fde06382e871a236e31ca98f24cbe314
@@ -15,3 +15,20 @@ Feature: Atto subscript button
And I follow "Edit profile"
Then I should see "<sub>Submarine</sub>"

@javascript
Scenario: Subscript some text in enclosed in superscript
Given I log in as "admin"
And I follow "Profile" in the user menu
And I follow "Edit profile"
And I set the field "Description" to "<sup>Submarine</sup>"
And I select the text in the "Description" Atto editor
And I click on "Show more buttons" "button"
When I click on "Subscript" "button"
And I press "Update profile"
And I follow "Preferences" in the user menu
And I follow "Editor preferences"
And I set the field "Text editor" to "Plain text area"
And I press "Save changes"
And I follow "Edit profile"
Then I should see "<sub>Submarine</sub>"

@@ -15,3 +15,20 @@ Feature: Atto superscript button
And I follow "Edit profile"
Then I should see "<sup>Helicopter</sup>"

@javascript
Scenario: Superscript some text that is enclosed in subscript
Given I log in as "admin"
And I follow "Profile" in the user menu
And I follow "Edit profile"
And I set the field "Description" to "<sub>Helicopter</sub>"
And I select the text in the "Description" Atto editor
And I click on "Show more buttons" "button"
When I click on "Superscript" "button"
And I press "Update profile"
And I follow "Preferences" in the user menu
And I follow "Editor preferences"
And I set the field "Text editor" to "Plain text area"
And I press "Save changes"
And I follow "Edit profile"
Then I should see "<sup>Helicopter</sup>"

0 comments on commit 9957c7f

Please sign in to comment.
You can’t perform that action at this time.