Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 11
Línea 1... Línea 1...
1
@editor @editor_atto @atto @atto_link @_file_upload
1
@editor @editor_atto @atto @atto_link
2
Feature: Add links to Atto
2
Feature: Add links to Atto
3
  To write rich text - I need to add links.
3
  To write rich text - I need to add links.
Línea 4... Línea 4...
4
 
4
 
5
  @javascript
5
  @javascript
6
  Scenario: Insert a links
6
  Scenario: Insert a links
7
    Given the following "blocks" exist:
7
    Given the following "user private file" exists:
8
      | blockname     | contextlevel | reference | pagetypepattern | defaultregion |
8
      | user     | admin                                          |
9
      | private_files | System       | 1         | my-index        | side-post     |
9
      | filepath | lib/editor/atto/tests/fixtures/moodle-logo.png |
10
    And I log in as "admin"
-
 
11
    And I follow "Manage private files..."
-
 
12
    And I upload "lib/editor/atto/tests/fixtures/moodle-logo.png" file to "Files" filemanager
-
 
13
    And I click on "Save changes" "button"
10
    And I log in as "admin"
14
    When I open my profile in edit mode
11
    When I open my profile in edit mode
15
    And I set the field "Description" to "Super cool"
12
    And I set the field "Description" to "Super cool"
16
    And I select the text in the "Description" Atto editor
13
    And I select the text in the "Description" Atto editor
17
    And I click on "Link" "button"
14
    And I click on "Link" "button"
Línea 83... Línea 80...
83
    And the field "Text to display" matches value "Moodle - Open-source learning platform"
80
    And the field "Text to display" matches value "Moodle - Open-source learning platform"
84
    And the field "Enter a URL" matches value "https://moodle.org/"
81
    And the field "Enter a URL" matches value "https://moodle.org/"
Línea 85... Línea 82...
85
 
82
 
86
  @javascript
83
  @javascript
87
  Scenario: Insert a link for an image
84
  Scenario: Insert a link for an image
88
    Given I log in as "admin"
85
    Given the following "user private file" exists:
89
    And I follow "Private files" in the user menu
86
      | user     | admin                                          |
90
    And I upload "lib/editor/atto/tests/fixtures/moodle-logo.png" file to "Files" filemanager
87
      | filepath | lib/editor/atto/tests/fixtures/moodle-logo.png |
91
    And I click on "Save changes" "button"
88
    And I log in as "admin"
92
    And I open my profile in edit mode
89
    And I open my profile in edit mode
93
    And I click on "Insert or edit image" "button"
90
    And I click on "Insert or edit image" "button"
94
    And I click on "Browse repositories..." "button"
91
    And I click on "Browse repositories..." "button"
95
    And I click on "Private files" "link" in the ".fp-repo-area" "css_element"
92
    And I click on "Private files" "link" in the ".fp-repo-area" "css_element"