Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@editor @editor_tiny @tiny_media @javascript
2
Feature: Use the TinyMCE editor to upload a video
3
  In order to work with videos
4
  As a user
5
  I need to be able to upload and manipulate videos
6
 
7
  Scenario: Clicking on the Video button in the TinyMCE editor opens the video dialog
8
    Given I log in as "admin"
9
    And I open my profile in edit mode
10
    When I click on the "Multimedia" button for the "Description" TinyMCE editor
11
    Then "Insert media" "dialogue" should exist
12
 
13
  Scenario: Browsing repositories in the TinyMCE editor shows the FilePicker
14
    Given I log in as "admin"
15
    And I open my profile in edit mode
16
    When I click on the "Multimedia" button for the "Description" TinyMCE editor
17
    And I click on "Browse repositories" "button" in the "Insert media" "dialogue"
18
    Then "File picker" "dialogue" should exist
19
 
20
  @_file_upload
21
  Scenario: Browsing repositories in the TinyMCE editor shows the FilePicker
22
    Given I log in as "admin"
23
    And I open my profile in edit mode
24
    When I click on the "Multimedia" button for the "Description" TinyMCE editor
25
    And I follow "Video"
26
    And I click on "Browse repositories..." "button" in the "#id_description_editor_video .tiny_media_source.tiny_media_media_source" "css_element"
27
    And I upload "/lib/editor/tiny/tests/behat/fixtures/moodle-logo.mp4" to the file picker for TinyMCE
28
    When I click on "Insert media" "button"
29
    And I select the "video" element in position "1" of the "Description" TinyMCE editor
30
 
31
  @_file_upload
32
  Scenario: Insert and update video in the TinyMCE editor
33
    Given I log in as "admin"
34
    And I open my profile in edit mode
35
    And I click on the "Multimedia" button for the "Description" TinyMCE editor
36
    And I follow "Video"
37
    And I click on "Browse repositories..." "button" in the "#id_description_editor_video .tiny_media_source.tiny_media_media_source" "css_element"
38
    And I upload "/lib/editor/tiny/tests/behat/fixtures/moodle-logo.mp4" to the file picker for TinyMCE
39
    And I click on "Insert media" "button"
40
    And I select the "video" element in position "1" of the "Description" TinyMCE editor
41
    When I click on the "Multimedia" button for the "Description" TinyMCE editor
42
    And I click on "Display options" "link"
43
    And I set the field "Title" to "Test title"
44
    And I click on "Advanced settings" "link"
45
    And I click on "Play automatically" "checkbox"
46
    And I click on "Muted" "checkbox"
47
    And I click on "Loop" "checkbox"
48
    Then "Insert media" "button" should not exist in the "Insert media" "dialogue"
49
    And "Update media" "button" should exist in the "Insert media" "dialogue"
50
    And I click on "Update media" "button"
51
    And I select the "video" element in position "1" of the "Description" TinyMCE editor
52
    And I click on the "Multimedia" button for the "Description" TinyMCE editor
53
    And I click on "Display options" "link"
54
    And the field "Title" matches value "Test title"
55
    And I click on "Advanced settings" "link"
56
    And the field "Play automatically" matches value "1"
57
    And the field "Muted" matches value "1"
58
    And the field "Loop" matches value "1"