MDL-46387 editor_atto: Add behat test for sub/sup
This commit is contained in:
@@ -19,3 +19,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>"
|
||||
|
||||
|
||||
@@ -19,3 +19,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>"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user