1 |
efrain |
1 |
@editor @editor_atto @atto @atto_superscript @_bug_phantomjs
|
|
|
2 |
Feature: Atto superscript button
|
|
|
3 |
To format text in Atto, I need to use the superscript button.
|
|
|
4 |
|
|
|
5 |
@javascript
|
|
|
6 |
Scenario: Subscript some text
|
|
|
7 |
Given I log in as "admin"
|
|
|
8 |
And I open my profile in edit mode
|
|
|
9 |
And I set the field "Description" to "Helicopter"
|
|
|
10 |
And I select the text in the "Description" Atto editor
|
|
|
11 |
And I click on "Show more buttons" "button"
|
|
|
12 |
When I click on "Superscript" "button"
|
|
|
13 |
And I press "Update profile"
|
|
|
14 |
And I follow "Preferences" in the user menu
|
|
|
15 |
And I follow "Editor preferences"
|
|
|
16 |
And I set the field "Text editor" to "Plain text area"
|
|
|
17 |
And I press "Save changes"
|
|
|
18 |
And I click on "Edit profile" "link" in the "region-main" "region"
|
|
|
19 |
Then I should see "<sup>Helicopter</sup>"
|
|
|
20 |
|
|
|
21 |
@javascript
|
|
|
22 |
Scenario: Superscript some text that is enclosed in subscript
|
|
|
23 |
Given I log in as "admin"
|
|
|
24 |
And I open my profile in edit mode
|
|
|
25 |
And I set the field "Description" to "<sub>Helicopter</sub>"
|
|
|
26 |
And I select the text in the "Description" Atto editor
|
|
|
27 |
And I click on "Show more buttons" "button"
|
|
|
28 |
When I click on "Superscript" "button"
|
|
|
29 |
And I press "Update profile"
|
|
|
30 |
And I follow "Preferences" in the user menu
|
|
|
31 |
And I follow "Editor preferences"
|
|
|
32 |
And I set the field "Text editor" to "Plain text area"
|
|
|
33 |
And I press "Save changes"
|
|
|
34 |
And I click on "Edit profile" "link" in the "region-main" "region"
|
|
|
35 |
Then I should see "<sup>Helicopter</sup>"
|