MDL-44871 Atto behat tests: Modified the tests to work around focus bugs with workspaces
[moodle.git] / lib / editor / atto / plugins / clear / tests / behat / clear.feature
blob59e38f90bfff6fb305035764787c68801a36bc6c
1 @atto @atto_clear @_bug_phantomjs
2 Feature: Atto clear button
3   To format text in Atto, I need to remove formatting
5   @javascript
6   Scenario: Clear formatting
7     Given I log in as "admin"
8     And I follow "Admin User"
9     And I follow "Edit profile"
10     And I set the field "Text editor" to "Plain text area"
11     And I set the field "Description" to "<p><i>Pisa</i></p>"
12     When I click on "Show more buttons" "button"
13     And I select the text in the "Description" field
14     And I click on "Clear formatting" "button"
15     And I press "Update profile"
16     And I follow "Edit profile"
17     Then I should not see "<i>Pisa"