1 |
efrain |
1 |
@editor @editor_atto @atto @atto_orderedlist @_bug_phantomjs
|
|
|
2 |
Feature: Atto ordered list button
|
|
|
3 |
To format text in Atto, I need to use the ordered list button.
|
|
|
4 |
|
|
|
5 |
@javascript
|
|
|
6 |
Scenario: Make a list from 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 "Have you heard the news everyone's talking<br/> Life is good 'cause everything's awesome<br/>"
|
|
|
10 |
And I select the text in the "Description" Atto editor
|
|
|
11 |
When I click on "Ordered list" "button"
|
|
|
12 |
And I press "Update profile"
|
|
|
13 |
And I follow "Preferences" in the user menu
|
|
|
14 |
And I follow "Editor preferences"
|
|
|
15 |
And I set the field "Text editor" to "Plain text area"
|
|
|
16 |
And I press "Save changes"
|
|
|
17 |
And I click on "Edit profile" "link" in the "region-main" "region"
|
|
|
18 |
Then "//textarea[@id='id_description_editor'][starts-with(text(), '<ol><li>') and contains(normalize-space(.), 'Have you heard the news everyone')]" "xpath_element" should exist
|