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
@mod @mod_forum @editor @editor_atto @atto @atto_h5p @filter @filter_displayh5p @core_h5p @_file_upload @_switch_iframe
1
@mod @mod_forum @filter @filter_displayh5p @core_h5p @_file_upload @_switch_iframe
2
Feature: Inline editing H5P content in mod_forum
2
Feature: Inline editing H5P content in mod_forum
3
  In order to edit an existing H5P content
3
  In order to edit an existing H5P content
4
  As a user
4
  As a user
5
  I need to see the button and access to the H5P editor
5
  I need to see the button and access to the H5P editor
Línea 33... Línea 33...
33
 
33
 
34
  @javascript @repository_contentbank
34
  @javascript @repository_contentbank
35
  Scenario: Edit H5P content from a forum intro using copy to content bank file
35
  Scenario: Edit H5P content from a forum intro using copy to content bank file
36
    Given I am on the "ForumName1" "forum activity editing" page logged in as admin
36
    Given I am on the "ForumName1" "forum activity editing" page logged in as admin
37
    # Add H5P content to the forum description.
37
    # Add H5P content to the forum description.
38
    And I click on "Insert H5P" "button" in the "#fitem_id_introeditor" "css_element"
38
    And I click on "Configure H5P content" "button" in the "#fitem_id_introeditor" "css_element"
39
    And I click on "Browse repositories..." "button" in the "Insert H5P" "dialogue"
39
    And I click on "Browse repositories..." "button" in the "Insert H5P content" "dialogue"
40
    And I select "Content bank" repository in file picker
40
    And I select "Content bank" repository in file picker
41
    And I click on "Greeting card" "file" in repository content area
41
    And I click on "Greeting card" "file" in repository content area
42
    And I click on "Make a copy of the file" "radio"
42
    And I click on "Make a copy of the file" "radio"
43
    And I click on "Select this file" "button"
43
    And I click on "Select this file" "button"
44
    And I click on "Insert H5P" "button" in the "Insert H5P" "dialogue"
44
    And I click on "Insert H5P" "button" in the "Insert H5P content" "dialogue"
45
    And I click on "Save and display" "button"
45
    And I click on "Save and display" "button"
46
    And I switch to "h5p-iframe" class iframe
46
    And I switch to "h5p-iframe" class iframe
47
    And I switch to "h5p-iframe" class iframe
47
    And I switch to "h5p-iframe" class iframe
48
    And I should see "Hello world!"
48
    And I should see "Hello world!"
Línea 80... Línea 80...
80
    And I follow "Forum post by admin"
80
    And I follow "Forum post by admin"
81
    And I click on "Edit" "link"
81
    And I click on "Edit" "link"
82
    # Add H5P content to a forum post as admin.
82
    # Add H5P content to a forum post as admin.
83
    And I set the following fields to these values:
83
    And I set the following fields to these values:
84
      | Subject | Forum post by admin |
84
      | Subject | Forum post by admin |
85
    And I click on "Insert H5P" "button" in the "#fitem_id_message" "css_element"
85
    And I click on "Configure H5P content" "button" in the "#fitem_id_message" "css_element"
86
    And I click on "Browse repositories..." "button" in the "Insert H5P" "dialogue"
86
    And I click on "Browse repositories..." "button" in the "Insert H5P content" "dialogue"
87
    And I select "Content bank" repository in file picker
87
    And I select "Content bank" repository in file picker
88
    And I click on "Greeting card" "file" in repository content area
88
    And I click on "Greeting card" "file" in repository content area
89
    And I click on "Select this file" "button"
89
    And I click on "Select this file" "button"
90
    And I click on "Insert H5P" "button" in the "Insert H5P" "dialogue"
90
    And I click on "Insert H5P" "button" in the "Insert H5P content" "dialogue"
91
    And I press "Save changes"
91
    And I press "Save changes"
92
    And I switch to "h5p-iframe" class iframe
92
    And I switch to "h5p-iframe" class iframe
93
    And I switch to "h5p-iframe" class iframe
93
    And I switch to "h5p-iframe" class iframe
94
    And I should see "Hello world!"
94
    And I should see "Hello world!"
95
    And I switch to the main frame
95
    And I switch to the main frame