source: moodle/trunk/fuentes/lib/editor/atto/plugins/bold/tests/behat/bold.feature @ 136

Last change on this file since 136 was 136, checked in by mabarracus, 3 years ago

Ported code to xenial

File size: 1.1 KB
Line 
1@editor @editor_atto @atto @atto_bold @_bug_phantomjs
2Feature: Atto bold button
3  To format text in Atto, I need to use the bold button.
4
5  @javascript
6  Scenario: Bold some text
7    Given I log in as "admin"
8    And I navigate to "Edit profile" node in "My profile settings"
9    And I set the field "Text editor" to "Plain text area"
10    And I set the field "Description" to "Badger"
11    And I select the text in the "Description" Atto editor
12    When I click on "Bold" "button"
13    And I press "Update profile"
14    And I follow "Edit profile"
15    Then I should see "<b>Badger</b>"
16
17  @javascript
18  Scenario: Unbold some text
19    Given I log in as "admin"
20    And I navigate to "Edit profile" node in "My profile settings"
21    And I set the field "Text editor" to "Plain text area"
22    And I set the field "Description" to "Mouse"
23    And I select the text in the "Description" Atto editor
24    When I click on "Bold" "button"
25    And I click on "Bold" "button"
26    And I press "Update profile"
27    And I follow "Edit profile"
28    Then I should not see "<b>Mouse</b>"
29    And I should see "Mouse"
Note: See TracBrowser for help on using the repository browser.