MDL-70438 contentbank: Display content uses before removal
[moodle.git] / contentbank / tests / behat / view_preferences.feature
CommitLineData
c393d818
BB
1@core @core_contentbank @contentbank_h5p @javascript
2Feature: Store the content bank view preference
3 In order to consistantly view the content bank in icons or details view
4 As an admin
5 I need to be able to store my view preference
6
7 Background:
8 Given the following "contentbank content" exist:
9 | contextlevel | reference | contenttype | user | contentname |
10 | System | | contenttype_h5p | admin | filltheblanks.h5p |
11 | System | | contenttype_h5p | admin | mathsbook.h5p |
12
13 Scenario: Admins can order content in the content bank
14 Given I log in as "admin"
15 And I am on site homepage
16 And I turn editing mode on
17 And I add the "Navigation" block if not present
18 And I expand "Site pages" node
19 And I click on "Content bank" "link"
4106d263 20 When I click on "Display content bank with file details" "button"
c393d818
BB
21 And I should see "Last modified"
22 And I follow "filltheblanks.h5p"
23 And I click on "Content bank" "link"
24 And I should see "Last modified"
4106d263 25 And I click on "Display content bank with icons" "button"
c393d818
BB
26 And I follow "filltheblanks.h5p"
27 And I click on "Content bank" "link"
28 And I should not see "Last modified"