Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@editor @editor_atto @atto @atto_align
2
Feature: Atto align text
3
  To format text in Atto, I need to use the align buttons.
4
 
5
  @javascript
6
  Scenario: Right align 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 "<p>Fascism</p>"
10
    And I click on "Show more buttons" "button"
11
    And I select the text in the "Description" Atto editor
12
    When I click on "Right align" "button"
13
    And I press "Update profile"
14
    And I follow "Preferences" in the user menu
15
    And I follow "Editor preferences"
16
    And I set the field "Text editor" to "Plain text area"
17
    And I press "Save changes"
18
    And I click on "Edit profile" "link" in the "region-main" "region"
19
    Then I should see "style=\"text-align:right;\""
20
 
21
  @javascript
22
  Scenario: Left align some text
23
    Given I log in as "admin"
24
    And I open my profile in edit mode
25
    And I set the field "Description" to "<p>Communism</p>"
26
    And I click on "Show more buttons" "button"
27
    And I select the text in the "Description" Atto editor
28
    When I click on "Right align" "button"
29
    And I click on "Left align" "button"
30
    And I press "Update profile"
31
    And I follow "Preferences" in the user menu
32
    And I follow "Editor preferences"
33
    And I set the field "Text editor" to "Plain text area"
34
    And I press "Save changes"
35
    And I click on "Edit profile" "link" in the "region-main" "region"
36
    Then I should see "style=\"text-align:left;\""
37
 
38
  @javascript
39
  Scenario: Center align some text
40
    Given I log in as "admin"
41
    And I open my profile in edit mode
42
    And I set the field "Description" to "<p>United Future</p>"
43
    And I click on "Show more buttons" "button"
44
    And I select the text in the "Description" Atto editor
45
    When I click on "Center" "button"
46
    And I press "Update profile"
47
    And I follow "Preferences" in the user menu
48
    And I follow "Editor preferences"
49
    And I set the field "Text editor" to "Plain text area"
50
    And I press "Save changes"
51
    And I click on "Edit profile" "link" in the "region-main" "region"
52
    Then I should see "style=\"text-align:center;\""