Rev 1 | AutorÃa | Comparar con el anterior | Ultima modificación | Ver Log |
@mod @mod_folder @block @block_recent_activityFeature: Files added in folder activity are visible in the recent activity blockIn order to view and download folder activity from recent activity blockAs a teacherI should be able to create folder activity with contentsBackground:Given the following "courses" exist:| fullname | shortname || Course 1 | C1 |And the following "blocks" exist:| blockname | contextlevel | reference | pagetypepattern | defaultregion || recent_activity | Course | C1 | course-view-* | side-pre |And the following "activities" exist:| activity | course | name || folder | C1 | Folder 1 |@_file_upload @javascriptScenario: Files added in folder activity are visible in recent activity blockGiven I am on the "Folder 1" "folder activity" page logged in as adminAnd I click on "Edit" "button"# Upload different file types in folder resourceAnd I upload "lib/tests/fixtures/empty.txt" file to "Files" filemanagerAnd I upload "lib/tests/fixtures/gd-logo.png" file to "Files" filemanagerAnd I press "Save changes"# Confirm folder activity and files within the folder are visible in Recent activity blockWhen I am on the "Course 1" course pageThen I should see "Folder 1" in the "Recent activity" "block"And I should see "empty.txt" in the "Recent activity" "block"And I should see "gd-logo.png" in the "Recent activity" "block"And I click on "Full report of recent activity..." "link"# Confirm files within folder activity are visible in the full reportAnd "Folder 1" "link" should existAnd "empty.txt" "link" should existAnd "gd-logo.png" "link" should existAnd "//img[@alt='empty.txt']" "xpath_element" should existAnd "//img[contains(@src, 'preview=tinyicon')]" "xpath_element" should exist# Confirm files are downloadableAnd following "empty.txt" should download a file that:| Has mimetype | text/plain || Contains text | empty file for testing purposes |And following "gd-logo.png" should download a file that:| Has mimetype | image/png |