X7ROOT File Manager
Current Path:
/home/cbholdings/pasukulu/contentbank/tests/behat
home
/
cbholdings
/
pasukulu
/
contentbank
/
tests
/
behat
/
📁
..
📄
access_permissions.feature
(1.11 KB)
📄
delete_content.feature
(4.96 KB)
📄
download_content.feature
(3.2 KB)
📄
edit_content.feature
(10.67 KB)
📄
events.feature
(3.85 KB)
📄
navigate_content.feature
(5.57 KB)
📄
search_content.feature
(3.45 KB)
📄
sort_content.feature
(3.69 KB)
📄
view_preferences.feature
(3.28 KB)
📄
visibility.feature
(7.94 KB)
Editing: download_content.feature
@core @core_contentbank @core_h5p @contentbank_h5p @_file_upload @javascript Feature: Download H5P content from the content bank In order export H5P content from the content bank As an admin I need to be able to download any H5P content from the content bank Background: Given the following "users" exist: | username | firstname | lastname | email | | manager | Max | Manager | man@example.com | And the following "role assigns" exist: | user | role | contextlevel | reference | | manager | manager | System | | And the following "contentbank content" exist: | contextlevel | reference | contenttype | user | contentname | filepath | | System | | contenttype_h5p | admin | filltheblanksadmin.h5p | /h5p/tests/fixtures/filltheblanks.h5p | | System | | contenttype_h5p | manager | filltheblanksmanager.h5p | /h5p/tests/fixtures/filltheblanks.h5p | And I log in as "admin" And I am on site homepage And I turn editing mode on And the following config values are set as admin: | unaddableblocks | | theme_boost| And I add the "Navigation" block if not present And I configure the "Navigation" block And I set the following fields to these values: | Page contexts | Display throughout the entire site | And I press "Save changes" Scenario: Admins can download content from the content bank Given I click on "Site pages" "list_item" in the "Navigation" "block" And I click on "Content bank" "link" in the "Navigation" "block" And I follow "filltheblanksmanager.h5p" And I click on "More" "button" And I should see "Download" When I click on "Download" "link" Then I should see "filltheblanksmanager.h5p" Scenario: Users can download content created by different users Given the following "permission overrides" exist: | capability | permission | role | contextlevel | reference | | moodle/contentbank:manageanycontent | Prohibit | manager | System | | And I log out And I log in as "manager" When I click on "Site pages" "list_item" in the "Navigation" "block" And I click on "Content bank" "link" in the "Navigation" "block" And I should see "filltheblanksadmin.h5p" And I follow "filltheblanksadmin.h5p" And I click on "More" "button" Then I should see "Download" And I should not see "Rename" Scenario: Users without the required capability cannot download content Given the following "permission overrides" exist: | capability | permission | role | contextlevel | reference | | moodle/contentbank:downloadcontent | Prohibit | manager | System | | And I log out And I log in as "manager" When I click on "Site pages" "list_item" in the "Navigation" "block" And I click on "Content bank" "link" in the "Navigation" "block" And I should see "filltheblanksmanager.h5p" And I follow "filltheblanksmanager.h5p" And I click on "More" "button" Then I should not see "Download"
Upload File
Create Folder