| 1 | efrain | 1 | @editor @editor_atto @atto @atto_html
 | 
        
           |  |  | 2 | Feature: Atto edit HTML
 | 
        
           |  |  | 3 |   To write advanced HTML, I need to edit the HTML source code
 | 
        
           |  |  | 4 |   | 
        
           |  |  | 5 |   @javascript
 | 
        
           |  |  | 6 |   Scenario: Edit the html source
 | 
        
           |  |  | 7 |     Given I log in as "admin"
 | 
        
           |  |  | 8 |     When I open my profile in edit mode
 | 
        
           |  |  | 9 |     And I set the field "Description" to "<p style=\"color: blue;\">Smurf</p>"
 | 
        
           |  |  | 10 |     And I click on "Show more buttons" "button"
 | 
        
           |  |  | 11 |     And I click on "HTML" "button"
 | 
        
           |  |  | 12 |     Then the field "Description" matches value "<p style=\"color: blue;\">Smurf</p>"
 | 
        
           |  |  | 13 |   | 
        
           |  |  | 14 |   @javascript
 | 
        
           |  |  | 15 |   Scenario: Validation of empty string when the form is submitted with HTML source mode.
 | 
        
           |  |  | 16 |     Given the following "courses" exist:
 | 
        
           |  |  | 17 |       | fullname | shortname | format |
 | 
        
           |  |  | 18 |       | Course 1 | C1        | weeks  |
 | 
        
           |  |  | 19 |     And the following "question categories" exist:
 | 
        
           |  |  | 20 |       | contextlevel | reference | name           |
 | 
        
           |  |  | 21 |       | Course       | C1        | Test questions |
 | 
        
           |  |  | 22 |     And the following "questions" exist:
 | 
        
           |  |  | 23 |       | questioncategory | qtype | name         | questiontext                  |
 | 
        
           |  |  | 24 |       | Test questions   | essay | Essay 01 new | Write about whatever you want |
 | 
        
           |  |  | 25 |     And I am on the "Essay 01 new" "core_question > edit" page logged in as admin
 | 
        
           |  |  | 26 |     And I click on "Show more buttons" "button" in the "Question text" "form_row"
 | 
        
           |  |  | 27 |     And I click on "HTML" "button" in the "Question text" "form_row"
 | 
        
           |  |  | 28 |     And I press the shift + end key
 | 
        
           |  |  | 29 |     And I press the delete key
 | 
        
           |  |  | 30 |     When I press "id_submitbutton"
 | 
        
           |  |  | 31 |     Then I should see "You must supply a value here." in the "Question text" "form_row"
 |