Proyectos de Subversion Moodle

Rev

Autoría | Ultima modificación | Ver Log |

@editor @editor_atto @atto @atto_indent
Feature: Indent text in Atto
  To write rich text - I need to indent and outdent things.

  @javascript
  Scenario: Indent
    Given I log in as "admin"
    And I follow "Profile" in the user menu
    When I click on "Edit profile" "link" in the "region-main" "region"
    And I set the field "Description" to "<p>I need some space.</p>"
    And I select the text in the "Description" Atto editor
    And I click on "Show more buttons" "button"
    And I click on "Indent" "button"
    And I press "Update profile"
    And I follow "Preferences" in the user menu
    And I follow "Editor preferences"
    And I set the field "Text editor" to "Plain text area"
    And I press "Save changes"
    And I click on "Edit profile" "link" in the "region-main" "region"
    Then I should see "class=\"editor-indent\""

  @javascript
  Scenario: Indent and outdent
    Given I log in as "admin"
    And I open my profile in edit mode
    And I set the field "Description" to "<p>I need some space.</p>"
    And I select the text in the "Description" Atto editor
    And I click on "Show more buttons" "button"
    And I click on "Indent" "button"
    And I click on "Outdent" "button"
    And I press "Update profile"
    And I follow "Preferences" in the user menu
    And I follow "Editor preferences"
    And I set the field "Text editor" to "Plain text area"
    And I press "Save changes"
    And I click on "Edit profile" "link" in the "region-main" "region"
    Then I should not see "class=\"editor-indent\""