mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
Merge branch 'MDL-70726-master' of https://github.com/NashTechOpenUniversity/moodle
This commit is contained in:
commit
90db228323
9 changed files with 37 additions and 29 deletions
|
@ -44,4 +44,4 @@ Feature: Manage H5P content from the content bank
|
|||
And I expand "Site pages" node
|
||||
And I click on "Content bank" "link"
|
||||
When I follow "filltheblanks.h5p"
|
||||
Then "region-main-settings-menu" "region" should not exist
|
||||
Then "Rename" "link" should not exist in the "region-main-settings-menu" "region"
|
||||
|
|
|
@ -43,25 +43,25 @@ Feature: Replace H5P file from an existing content requires special capabilities
|
|||
|
||||
Scenario: Teacher cannot replace another user's H5P files
|
||||
When I click on "admincontent" "link"
|
||||
Then "region-main-settings-menu" "region" should not exist
|
||||
Then "Replace with file" "link" should not exist in the "region-main-settings-menu" "region"
|
||||
|
||||
Scenario: Teacher cannot replace a content without having upload capability
|
||||
Given the following "permission overrides" exist:
|
||||
| capability | permission | role | contextlevel | reference |
|
||||
| moodle/contentbank:upload | Prevent | editingteacher | Course | C1 |
|
||||
When I click on "teachercontent" "link"
|
||||
Then "region-main-settings-menu" "region" should not exist
|
||||
Then "Replace with file" "link" should not exist in the "region-main-settings-menu" "region"
|
||||
|
||||
Scenario: Teacher cannot replace a content without having the H5P upload capability
|
||||
Given the following "permission overrides" exist:
|
||||
| capability | permission | role | contextlevel | reference |
|
||||
| contenttype/h5p:upload | Prevent | editingteacher | Course | C1 |
|
||||
When I click on "teachercontent" "link"
|
||||
Then "region-main-settings-menu" "region" should not exist
|
||||
Then "Replace with file" "link" should not exist in the "region-main-settings-menu" "region"
|
||||
|
||||
Scenario: Teacher cannot replace a content without having the manage own content capability
|
||||
Given the following "permission overrides" exist:
|
||||
| capability | permission | role | contextlevel | reference |
|
||||
| moodle/contentbank:manageowncontent | Prevent | editingteacher | Course | C1 |
|
||||
When I click on "teachercontent" "link"
|
||||
Then "region-main-settings-menu" "region" should not exist
|
||||
Then "Replace with file" "link" should not exist in the "region-main-settings-menu" "region"
|
||||
|
|
|
@ -60,7 +60,7 @@ Feature: Delete H5P file from the content bank
|
|||
And I click on "Content bank" "link" in the "Navigation" "block"
|
||||
And I should see "content2delete.h5p"
|
||||
And I follow "content2delete.h5p"
|
||||
Then ".header-actions-container" "css_element" should not exist
|
||||
Then "Delete" "link" should not exist in the "region-main-settings-menu" "region"
|
||||
And I click on "Content bank" "link"
|
||||
And I click on "Upload" "link"
|
||||
And I click on "Choose a file..." "button"
|
||||
|
|
|
@ -24,16 +24,18 @@ Feature: Search content in the content bank
|
|||
And I expand "Site pages" node
|
||||
And I click on "Content bank" "link"
|
||||
And I should see "santjordi.h5p"
|
||||
And "Clear search input" "button" should not exist
|
||||
And "Clear search input" "button" should not be visible
|
||||
And I should not see "items found"
|
||||
When I set the field "Search" to "book"
|
||||
Then "Clear search input" "button" should exist
|
||||
# Waiting for the animation to show the button to finish.
|
||||
And I wait "1" seconds
|
||||
Then "Clear search input" "button" should be visible
|
||||
And I should see "3 items found"
|
||||
And I should see "SantJordi_book"
|
||||
And I should see "mathsbook.h5p"
|
||||
And I should see "historybook.h5p"
|
||||
And I set the field "Search" to "sant"
|
||||
And "Clear search input" "button" should exist
|
||||
And "Clear search input" "button" should be visible
|
||||
And I should see "5 items found"
|
||||
And I set the field "Search" to "santjordi"
|
||||
And I should see "4 items found"
|
||||
|
@ -42,10 +44,14 @@ Feature: Search content in the content bank
|
|||
And I should see "SantJordi_book"
|
||||
And I should see "Dragon_santjordi.h5p"
|
||||
And I click on "Clear search input" "button"
|
||||
And "Clear search input" "button" should not exist
|
||||
# Waiting for the animation to hide the button to finish.
|
||||
And I wait "1" seconds
|
||||
And "Clear search input" "button" should not be visible
|
||||
And I should not see "items found"
|
||||
And I set the field "Search" to ".h5p"
|
||||
And "Clear search input" "button" should exist
|
||||
# Waiting for the animation to show the button to finish.
|
||||
And I wait "1" seconds
|
||||
And "Clear search input" "button" should be visible
|
||||
And I should see "7 items found"
|
||||
And I set the field "Search" to "friend"
|
||||
And I should see "0 items found"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue