AutorÃa | Ultima modificación | Ver Log |
@media @media_videojs @_file_uploadFeature: Embed videos without the media filterIn order to add helpful resources for studentsAs a teacherI need to be able to embed videos URL, file and lesson modulesBackground:Given I log in as "admin"And I am on site homepageAnd I turn editing mode on@javascriptScenario: Add a video in a URL resource. Make sure media filters workGiven the following "activity" exists:| activity | url || course | Acceptance test site || name | Video URL || intro | Example of a video url || externalurl | http://download.moodle.org/mediatest/quicktime_320_180.mov || section | 1 |When I am on the "Video URL" "url activity" pageThen ".video-js" "css_element" should existAnd I am on site homepage@javascriptScenario: Add a video as a File resource. Make sure media filters workWhen I add a "File" to section "1" using the activity chooserAnd I set the following fields to these values:| Name | Video File || Description | Example of a video file |And I upload "media/player/videojs/tests/fixtures/test.mov" file to "Select files" filemanagerAnd I press "Save and display"Then ".video-js" "css_element" should exist@javascriptScenario: Add a video as content to a lesson. Make sure media filters workGiven the following "activities" exist:| activity | course | section | name || lesson | Acceptance test site | 1 | Lesson with video |When I am on the "Lesson with video" "lesson activity editing" pageAnd I expand all fieldsetsAnd I upload "media/player/videojs/tests/fixtures/test.mov" file to "Linked media" filemanagerAnd I press "Save and display"And I follow "Add a content page"And I set the following fields to these values:| Page title | Placeholder content || Description | Just so we can preview the lesson |And I press "Save page"And I am on site homepageAnd I follow "Lesson"And I follow "Click here to view"And I switch to "lessonmediafile" windowThen ".video-js" "css_element" should existAnd I switch to the main window