1 |
efrain |
1 |
@editor @editor_atto @atto @atto_clear @_bug_phantomjs
|
|
|
2 |
Feature: Atto clear button
|
|
|
3 |
To format text in Atto, I need to remove formatting
|
|
|
4 |
|
|
|
5 |
@javascript
|
|
|
6 |
Scenario: Clear formatting
|
|
|
7 |
Given I log in as "admin"
|
|
|
8 |
And I open my profile in edit mode
|
|
|
9 |
And I set the field "Description" to "Pisa"
|
|
|
10 |
And I select the text in the "Description" Atto editor
|
|
|
11 |
And I click on "Italic" "button"
|
|
|
12 |
And I click on "Show more buttons" "button"
|
|
|
13 |
And I select the text in the "Description" Atto editor
|
|
|
14 |
When I click on "Clear formatting" "button"
|
|
|
15 |
And I press "Update profile"
|
|
|
16 |
And I follow "Preferences" in the user menu
|
|
|
17 |
And I follow "Editor preferences"
|
|
|
18 |
And I set the field "Text editor" to "Plain text area"
|
|
|
19 |
And I press "Save changes"
|
|
|
20 |
And I click on "Edit profile" "link" in the "region-main" "region"
|
|
|
21 |
Then I should not see "<i>Pisa"
|