AutorÃa | Ultima modificación | Ver Log |
@core @core_contentbank @core_h5p @contenttype_h5p @_file_upload @_switch_iframe @javascriptFeature: Replace H5P file from an existing contentIn order to replace an H5P content from the content bankAs an adminI need to be able to replace the content with a new .h5p fileBackground:Given the following "contentbank content" exist:| contextlevel | reference | contenttype | user | contentname | filepath || System | | contenttype_h5p | admin | filltheblanks.h5p | /h5p/tests/fixtures/filltheblanks.h5p |And I log in as "admin"And I turn editing mode onAnd the following config values are set as admin:| unaddableblocks | | theme_boost|And I add the "Navigation" block if not presentAnd I expand "Site pages" nodeAnd I click on "Content bank" "link"Scenario: Admins can replace the original .h5p file with a new oneGiven I click on "filltheblanks.h5p" "link"And I switch to "h5p-player" class iframeAnd I switch to "h5p-iframe" class iframeAnd I should see "Of which countries"And I switch to the main frameWhen I click on "More" "button"And I click on "Replace with file" "link"And I upload "h5p/tests/fixtures/ipsums.h5p" file to "Upload content" filemanagerAnd I click on "Save changes" "button"Then I switch to "h5p-player" class iframeAnd I switch to "h5p-iframe" class iframeAnd I should see "Lorum ipsum"And I switch to the main frame