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 @javascriptFeature: Store the content bank view preferenceIn order to consistantly view the content bank in icons or details viewAs an adminI need to be able to store my view preferenceBackground: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 follow "Manage private files..."And I upload "h5p/tests/fixtures/filltheblanks.h5p" file to "Files" filemanagerAnd I upload "h5p/tests/fixtures/greeting-card.h5p" file to "Files" filemanagerAnd I click on "Save changes" "button"And I am on site homepageAnd 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 configure the "Navigation" blockAnd I set the following fields to these values:| Page contexts | Display throughout the entire site |And I press "Save changes"And I expand "Site pages" nodeAnd I click on "Content bank" "link"And 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 set the field "Save as" to "fib.h5p"And I click on "Select this file" "button"And I click on "Save changes" "button"And I click on "Content bank" "link"And 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 "greeting-card.h5p" "link"And I set the field "Save as" to "greetingcard.h5p"And I click on "Select this file" "button"And I click on "Save changes" "button"Scenario: There are several views for displaying contents into the content bankGiven I am on site homepageAnd I expand "Site pages" nodeAnd I click on "Content bank" "link"When I click on "Display content bank with file details" "button"Then I should see "Last modified"And I follow "greetingcard.h5p"And I click on "Content bank" "link"And I should see "Last modified"And I click on "Display content bank with icons" "button"And I follow "greetingcard.h5p"And I click on "Content bank" "link"And I should not see "Last modified"Scenario: Display the number of times a content is used in file details viewGiven I follow "Dashboard"And I follow "Manage private files..."And I click on "Add..." "button"And I select "Content bank" repository in file pickerAnd I click on "fib.h5p" "file" in repository content areaAnd I click on "Link to the file" "radio"And I click on "Select this file" "button"And I click on "Save changes" "button"When I am on site homepageAnd I expand "Site pages" nodeAnd I click on "Content bank" "link"And I click on "Display content bank with file details" "button"Then I should see "1" in the "[data-file='fib.h5p'] .cb-uses" "css_element"And I should see "0" in the "[data-file='greetingcard.h5p'] .cb-uses" "css_element"