Ir a la última revisión | Autoría | Comparar con el anterior | Ultima modificación | Ver Log |
@core @core_contentbank @core_h5p @contentbank_h5p @_file_upload @_switch_iframe @javascriptFeature: Confirm content bank events are triggeredIn order to log content bank actionsAs an adminI need to be able to check triggered eventsBackground:Given the following "blocks" exist:| blockname | contextlevel | reference | pagetypepattern | defaultregion || private_files | System | 1 | my-index | side-post |And I log in as "admin"And I navigate to "H5P > Manage H5P content types" in site administrationAnd I upload "h5p/tests/fixtures/filltheblanks.h5p" file to "H5P content type" filemanagerAnd I click on "Upload H5P content types" "button" in the "#fitem_id_uploadlibraries" "css_element"And the following "courses" exist:| fullname | shortname | category || Course 1 | C1 | 0 |And the following "contentbank content" exist:| contextlevel | reference | contenttype | user | contentname | filepath || Course | C1 | contenttype_h5p | admin | Existing | /h5p/tests/fixtures/filltheblanks.h5p |And I follow "Dashboard"And I follow "Manage private files..."And I upload "h5p/tests/fixtures/filltheblanks.h5p" file to "Files" filemanagerAnd I click on "Save changes" "button"And I am on "Course 1" course homepage with editing mode onAnd the following config values are set as admin:| unaddableblocks | | theme_boost|And I add the "Navigation" block if not presentScenario: Content created and uploaded events when uploading a content fileGiven I navigate to "Reports > Live logs" in site administrationAnd I should not see "Content uploaded"And I should not see "Content created"And I am on "Course 1" course homepageAnd I expand "Site pages" nodeAnd I click on "Content bank" "link"When I click on "Upload" "link"And I click on "Choose a file..." "button"And I click on "Private files" "link" in the ".fp-repo-area" "css_element"And I click on "filltheblanks.h5p" "link"And I click on "Select this file" "button"And I click on "Save changes" "button"And I navigate to "Reports > Live logs" in site administrationThen I should see "Content uploaded"And I should see "Content created"Scenario: Content viewed eventGiven I navigate to "Reports > Live logs" in site administrationAnd I should not see "Content viewed"And I am on "Course 1" course homepageAnd I expand "Site pages" nodeAnd I click on "Content bank" "link"When I click on "Existing" "link"And I navigate to "Reports > Live logs" in site administrationThen I should see "Content viewed"Scenario: Content deleted eventGiven I navigate to "Reports > Live logs" in site administrationAnd I should not see "Content deleted"And I am on "Course 1" course homepageAnd I expand "Site pages" nodeAnd I click on "Content bank" "link"And I click on "Existing" "link"And I click on "More" "button"When I click on "Delete" "link"And I click on "Delete" "button" in the "Delete content" "dialogue"And I navigate to "Reports > Live logs" in site administrationThen I should see "Content deleted"Scenario: Content updated event when renamingGiven I navigate to "Reports > Live logs" in site administrationAnd I should not see "Content updated"And I am on "Course 1" course homepageAnd I expand "Site pages" nodeAnd I click on "Content bank" "link"And I click on "Existing" "link"And I click on "More" "button"When I click on "Rename" "link"And I set the field "Content name" to "New name"And I click on "Rename" "button"And I navigate to "Reports > Live logs" in site administrationThen I should see "Content updated"