mirror of
https://github.com/moodle/moodle.git
synced 2025-01-17 13:38:32 +01:00
MDL-73347 behat: Add blocks hidden by default for boost
For the boost them, a few themes have been hidden by default. The unaddable setting should be set to let admins add them again, because some behat tests need them.
This commit is contained in:
parent
341a7b2a97
commit
53fe23d8b5
@ -7,7 +7,9 @@ Feature: Manage availability conditions
|
||||
@javascript
|
||||
Scenario: Display list of availability conditions
|
||||
# Check the report doesn't show when not enabled.
|
||||
Given I log in as "admin"
|
||||
Given the following config values are set as admin:
|
||||
| unaddableblocks | | theme_boost|
|
||||
And I log in as "admin"
|
||||
And I turn editing mode on
|
||||
And I add the "Administration" block if not present
|
||||
And the following config values are set as admin:
|
||||
|
@ -6,6 +6,8 @@ Feature: Import course content bank content
|
||||
|
||||
Background:
|
||||
Given I log in as "admin"
|
||||
And the following config values are set as admin:
|
||||
| unaddableblocks | | theme_boost|
|
||||
And I am on site homepage
|
||||
And I turn editing mode on
|
||||
And I add the "Navigation" block if not present
|
||||
|
@ -11,6 +11,8 @@ Feature: Add badges to the system
|
||||
@javascript
|
||||
Scenario: Accessing the badges
|
||||
And I turn editing mode on
|
||||
And the following config values are set as admin:
|
||||
| unaddableblocks | | theme_boost|
|
||||
# TODO MDL-57120 site "Badges" link not accessible without navigation block.
|
||||
And I add the "Navigation" block if not present
|
||||
And I click on "Site pages" "list_item" in the "Navigation" "block"
|
||||
@ -132,6 +134,8 @@ Feature: Add badges to the system
|
||||
@javascript @_file_upload
|
||||
Scenario: Add a badge from Site badges section
|
||||
Given I turn editing mode on
|
||||
And the following config values are set as admin:
|
||||
| unaddableblocks | | theme_boost|
|
||||
# TODO MDL-57120 site "Badges" link not accessible without navigation block.
|
||||
And I add the "Navigation" block if not present
|
||||
When I click on "Site pages" "list_item" in the "Navigation" "block"
|
||||
|
@ -98,6 +98,8 @@ Feature: Award badges
|
||||
# Teacher 1 should NOT have access to manage/create site badges in the Site badges section.
|
||||
When I am on homepage
|
||||
And I turn editing mode on
|
||||
And the following config values are set as admin:
|
||||
| unaddableblocks | | theme_boost|
|
||||
# TODO MDL-57120 site "Badges" link not accessible without navigation block.
|
||||
And I add the "Navigation" block if not present
|
||||
And I click on "Site pages" "list_item" in the "Navigation" "block"
|
||||
|
@ -12,6 +12,8 @@ Feature: Feature: Students can use the recent blog entries block to view recent
|
||||
And I am on site homepage
|
||||
And I turn editing mode on
|
||||
And I add the "Recent blog entries" block
|
||||
And the following config values are set as admin:
|
||||
| unaddableblocks | | theme_boost|
|
||||
# TODO MDL-57120 site "Blogs" link not accessible without navigation block.
|
||||
And I add the "Navigation" block if not present
|
||||
And I log out
|
||||
|
@ -23,6 +23,8 @@ Feature: Adding blog tag block
|
||||
When I log in as "teacher1"
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
And I add the "Blog tags" block
|
||||
And the following config values are set as admin:
|
||||
| unaddableblocks | | theme_boost|
|
||||
# TODO MDL-57120 site "Blogs" link not accessible without navigation block.
|
||||
And I add the "Navigation" block if not present
|
||||
|
||||
|
@ -31,6 +31,8 @@ Feature: Enable the course_list block on a category page and view it's contents
|
||||
And I turn editing mode on
|
||||
And I am on course index
|
||||
And I follow "Category 1"
|
||||
And the following config values are set as admin:
|
||||
| unaddableblocks | | theme_boost|
|
||||
And I add the "Courses" block
|
||||
And I log out
|
||||
When I log in as "teacher1"
|
||||
@ -49,6 +51,8 @@ Feature: Enable the course_list block on a category page and view it's contents
|
||||
And I turn editing mode on
|
||||
And I am on course index
|
||||
And I follow "Category 1"
|
||||
And the following config values are set as admin:
|
||||
| unaddableblocks | | theme_boost|
|
||||
And I add the "Courses" block
|
||||
And I log out
|
||||
When I log in as "teacher1"
|
||||
@ -67,6 +71,8 @@ Feature: Enable the course_list block on a category page and view it's contents
|
||||
And I turn editing mode on
|
||||
And I am on course index
|
||||
And I follow "Category 1"
|
||||
And the following config values are set as admin:
|
||||
| unaddableblocks | | theme_boost|
|
||||
When I add the "Courses" block
|
||||
Then I should see "Category 1" in the "Course categories" "block"
|
||||
And I should see "Category A" in the "Course categories" "block"
|
||||
|
@ -28,6 +28,8 @@ Feature: Enable the course_list block on a course page and view it's contents
|
||||
Scenario: Add the course list block on course page and navigate to the course listing
|
||||
Given I log in as "teacher1"
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
And the following config values are set as admin:
|
||||
| unaddableblocks | | theme_boost|
|
||||
When I add the "Courses" block
|
||||
Then I should see "Course 1" in the "My courses" "block"
|
||||
And I should see "Course 2" in the "My courses" "block"
|
||||
@ -39,6 +41,8 @@ Feature: Enable the course_list block on a course page and view it's contents
|
||||
Scenario: Add the course list block on course page and navigate to another course
|
||||
Given I log in as "teacher1"
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
And the following config values are set as admin:
|
||||
| unaddableblocks | | theme_boost|
|
||||
When I add the "Courses" block
|
||||
Then I should see "Course 1" in the "My courses" "block"
|
||||
And I should see "Course 2" in the "My courses" "block"
|
||||
@ -50,6 +54,8 @@ Feature: Enable the course_list block on a course page and view it's contents
|
||||
Scenario: Add the course list block on course page and view as an admin
|
||||
Given I log in as "admin"
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
And the following config values are set as admin:
|
||||
| unaddableblocks | | theme_boost|
|
||||
When I add the "Courses" block
|
||||
Then I should see "Category 1" in the "Course categories" "block"
|
||||
And I should see "Category A" in the "Course categories" "block"
|
||||
@ -62,7 +68,8 @@ Feature: Enable the course_list block on a course page and view it's contents
|
||||
|
||||
Scenario: View the course list block on course page with hide all courses link enabled
|
||||
Given the following config values are set as admin:
|
||||
| block_course_list_hideallcourseslink | 1 |
|
||||
| block_course_list_hideallcourseslink | 1 | |
|
||||
| unaddableblocks | | theme_boost|
|
||||
And I log in as "teacher1"
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
When I add the "Courses" block
|
||||
@ -70,7 +77,8 @@ Feature: Enable the course_list block on a course page and view it's contents
|
||||
|
||||
Scenario: View the course list block on course page with admin sees own course enabled
|
||||
Given the following config values are set as admin:
|
||||
| block_course_list_adminview | own |
|
||||
| block_course_list_adminview | own | |
|
||||
| unaddableblocks | | theme_boost|
|
||||
And the following "course enrolments" exist:
|
||||
| user | course | role |
|
||||
| admin | C1 | editingteacher |
|
||||
|
@ -28,6 +28,8 @@ Feature: Enable the course_list block on the dashboard and view it's contents
|
||||
Scenario: Add the course list block on the dashboard and navigate to the course listing
|
||||
Given I log in as "teacher1"
|
||||
And I turn editing mode on
|
||||
And the following config values are set as admin:
|
||||
| unaddableblocks | | theme_boost|
|
||||
When I add the "Courses" block
|
||||
Then I should see "Course 1" in the "My courses" "block"
|
||||
And I should see "Course 2" in the "My courses" "block"
|
||||
@ -39,6 +41,8 @@ Feature: Enable the course_list block on the dashboard and view it's contents
|
||||
Scenario: Add the course list block on the dashboard and navigate to another course
|
||||
Given I log in as "teacher1"
|
||||
And I turn editing mode on
|
||||
And the following config values are set as admin:
|
||||
| unaddableblocks | | theme_boost|
|
||||
When I add the "Courses" block
|
||||
Then I should see "Course 1" in the "My courses" "block"
|
||||
And I should see "Course 2" in the "My courses" "block"
|
||||
@ -50,6 +54,8 @@ Feature: Enable the course_list block on the dashboard and view it's contents
|
||||
Scenario: Add the course list block on the dashboard and view as an admin
|
||||
Given I log in as "admin"
|
||||
And I turn editing mode on
|
||||
And the following config values are set as admin:
|
||||
| unaddableblocks | | theme_boost|
|
||||
When I add the "Courses" block
|
||||
Then I should see "Category 1" in the "Course categories" "block"
|
||||
And I should see "Category A" in the "Course categories" "block"
|
||||
|
@ -29,6 +29,8 @@ Feature: Enable the course_list block on the frontpage and view it's contents
|
||||
Given 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 "Courses" block
|
||||
And I log out
|
||||
When I log in as "teacher1"
|
||||
@ -44,6 +46,8 @@ Feature: Enable the course_list block on the frontpage and view it's contents
|
||||
Given 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 "Courses" block
|
||||
And I log out
|
||||
When I log in as "teacher1"
|
||||
@ -59,6 +63,8 @@ Feature: Enable the course_list block on the frontpage and view it's contents
|
||||
Given 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|
|
||||
When I add the "Courses" block
|
||||
Then I should see "Category 1" in the "Course categories" "block"
|
||||
And I should see "Category A" in the "Course categories" "block"
|
||||
@ -73,6 +79,8 @@ Feature: Enable the course_list block on the frontpage and view it's contents
|
||||
Given 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 "Courses" block
|
||||
And I log out
|
||||
When I log in as "guest"
|
||||
|
@ -39,6 +39,8 @@ Feature: Expand the courses nodes within the navigation block
|
||||
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:
|
||||
|
@ -18,6 +18,8 @@ Feature: Displaying the link to the Participants page
|
||||
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:
|
||||
|
@ -32,6 +32,8 @@ Feature: View my courses in navigation block
|
||||
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:
|
||||
|
@ -21,14 +21,18 @@ Feature: The section links block allows users to quickly navigate around a moodl
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
|
||||
Scenario: Add the section links block to a course.
|
||||
Given I add the "Section links" block
|
||||
Given the following config values are set as admin:
|
||||
| unaddableblocks | | theme_boost|
|
||||
And I add the "Section links" block
|
||||
And I turn editing mode off
|
||||
And I should see "5" in the "Section links" "block"
|
||||
When I follow "5"
|
||||
Then I should see "Test assignment 1"
|
||||
|
||||
Scenario: Add the section links block to a course and limit the sections displayed.
|
||||
Given I add the "Section links" block
|
||||
Given the following config values are set as admin:
|
||||
| unaddableblocks | | theme_boost|
|
||||
And I add the "Section links" block
|
||||
And I configure the "Section links" block
|
||||
And I set the following fields to these values:
|
||||
| id_config_numsections1 | 5 |
|
||||
@ -42,7 +46,9 @@ Feature: The section links block allows users to quickly navigate around a moodl
|
||||
Then I should see "Test assignment 1"
|
||||
|
||||
Scenario: Add the section links block to a course and limit the sections displayed using the alternative number of sections.
|
||||
Given I add the "Section links" block
|
||||
Given the following config values are set as admin:
|
||||
| unaddableblocks | | theme_boost|
|
||||
And I add the "Section links" block
|
||||
And I configure the "Section links" block
|
||||
And I set the following fields to these values:
|
||||
| id_config_numsections1 | 5 |
|
||||
|
@ -20,6 +20,8 @@ Feature: The Section links block can be configured to display section name in ad
|
||||
| showsectionname | 1 | block_section_links |
|
||||
And I log in as "admin"
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
And the following config values are set as admin:
|
||||
| unaddableblocks | | theme_boost|
|
||||
And I add the "Section links" block
|
||||
And I log out
|
||||
|
||||
|
@ -8,6 +8,8 @@ Feature: Adding and configuring Flickr block
|
||||
Scenario: Adding Flickr block to the tags site page
|
||||
Given I log in as "admin"
|
||||
And I turn editing mode on
|
||||
And the following config values are set as admin:
|
||||
| unaddableblocks | | theme_boost|
|
||||
# TODO MDL-57120 site "Tags" link not accessible without navigation block.
|
||||
And I add the "Navigation" block if not present
|
||||
And I click on "Site pages" "list_item" in the "Navigation" "block"
|
||||
|
@ -15,6 +15,8 @@ Feature: Adding and configuring YouTube block
|
||||
| apikey | | block_tag_youtube |
|
||||
And I follow "Dashboard"
|
||||
And I turn editing mode on
|
||||
And the following config values are set as admin:
|
||||
| unaddableblocks | | theme_boost|
|
||||
# TODO MDL-57120 site "Tags" link not accessible without navigation block.
|
||||
And I add the "Navigation" block if not present
|
||||
And I click on "Site pages" "list_item" in the "Navigation" "block"
|
||||
@ -35,6 +37,8 @@ Feature: Adding and configuring YouTube block
|
||||
| apikey | invalidapikeyvalue | block_tag_youtube |
|
||||
And I follow "Dashboard"
|
||||
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 click on "Site pages" "list_item" in the "Navigation" "block"
|
||||
And I click on "Tags" "link" in the "Navigation" "block"
|
||||
|
@ -12,6 +12,8 @@ Feature: Comment on a blog entry
|
||||
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|
|
||||
# TODO MDL-57120 "Site blogs" link not accessible without navigation block.
|
||||
And I add the "Navigation" block if not present
|
||||
And I configure the "Navigation" block
|
||||
|
@ -11,6 +11,8 @@ Feature: Delete a blog entry
|
||||
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|
|
||||
# TODO MDL-57120 "Site blogs" link not accessible without navigation block.
|
||||
And I add the "Navigation" block if not present
|
||||
And I configure the "Navigation" block
|
||||
|
@ -10,6 +10,8 @@ Feature: Replace H5P file from an existing content
|
||||
| System | | contenttype_h5p | admin | filltheblanks.h5p | /h5p/tests/fixtures/filltheblanks.h5p |
|
||||
And I log in as "admin"
|
||||
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 expand "Site pages" node
|
||||
And I click on "Content bank" "link"
|
||||
|
@ -10,6 +10,8 @@ Feature: H5P file upload to content bank for admins
|
||||
And I upload "h5p/tests/fixtures/filltheblanks.h5p" file to "Files" filemanager
|
||||
And I click on "Save changes" "button"
|
||||
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 expand "Site pages" node
|
||||
And I click on "Content bank" "link"
|
||||
@ -66,6 +68,8 @@ Feature: H5P file upload to content bank for admins
|
||||
And I wait until the page is ready
|
||||
Then I should see "filltheblanks.h5p"
|
||||
And I am on "Course 1" course homepage
|
||||
And the following config values are set as admin:
|
||||
| unaddableblocks | | theme_boost|
|
||||
And I add the "Navigation" block if not present
|
||||
And I expand "Site pages" node
|
||||
And I click on "Content bank" "link"
|
||||
|
@ -21,6 +21,8 @@ Feature: Disable H5P content-types from the content bank
|
||||
| Course | C1 | contenttype_h5p | admin | invalidh5p | /h5p/tests/fixtures/h5ptest.zip |
|
||||
And I log in as "admin"
|
||||
And I am on "Course 1" course homepage with 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 log out
|
||||
|
||||
|
@ -25,6 +25,8 @@ Feature: Manage H5P content from the content bank
|
||||
| Course | C1 | contenttype_h5p | admin | filltheblanks.h5p | /h5p/tests/fixtures/filltheblanks.h5p |
|
||||
| Course | C1 | contenttype_h5p | teacher1 | ipsums.h5p | /h5p/tests/fixtures/ipsums.h5p |
|
||||
And I am on "Course 1" course homepage with 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 log out
|
||||
|
||||
|
@ -30,6 +30,8 @@ Feature: Replace H5P file from an existing content requires special capabilities
|
||||
And I log out
|
||||
And I log in as "teacher1"
|
||||
And I am on "Course 1" course homepage with 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 expand "Site pages" node
|
||||
And I click on "Content bank" "link"
|
||||
|
@ -26,12 +26,16 @@ Feature: H5P file upload to content bank for non admins
|
||||
|
||||
Scenario: Teachers can not access system level content bank
|
||||
Given 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
|
||||
When I expand "Site pages" node
|
||||
Then I should not see "Content bank"
|
||||
|
||||
Scenario: Teachers can access course level content bank
|
||||
Given I am on "Course 1" course homepage with editing mode on
|
||||
And the following config values are set as admin:
|
||||
| unaddableblocks | | theme_boost|
|
||||
And I add the "Navigation" block if not present
|
||||
When I expand "Site pages" node
|
||||
Then I should see "Content bank"
|
||||
@ -45,6 +49,8 @@ Feature: H5P file upload to content bank for non admins
|
||||
And I log out
|
||||
And I log in as "teacher1"
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
And the following config values are set as admin:
|
||||
| unaddableblocks | | theme_boost|
|
||||
And I add the "Navigation" block if not present
|
||||
When I expand "Site pages" node
|
||||
And I click on "Content bank" "link"
|
||||
@ -67,6 +73,8 @@ Feature: H5P file upload to content bank for non admins
|
||||
And I log out
|
||||
And I log in as "teacher1"
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
And the following config values are set as admin:
|
||||
| unaddableblocks | | theme_boost|
|
||||
And I add the "Navigation" block if not present
|
||||
When I expand "Site pages" node
|
||||
And I click on "Content bank" "link"
|
||||
@ -81,6 +89,8 @@ Feature: H5P file upload to content bank for non admins
|
||||
And I log out
|
||||
When I log in as "teacher2"
|
||||
And I am on "Course 1" course homepage with 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 expand "Site pages" node
|
||||
And I click on "Content bank" "link"
|
||||
@ -94,6 +104,8 @@ Feature: H5P file upload to content bank for non admins
|
||||
And I log out
|
||||
And I log in as "teacher1"
|
||||
And I am on "Course 1" course homepage with 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 expand "Site pages" node
|
||||
And I click on "Content bank" "link"
|
||||
@ -127,6 +139,8 @@ Feature: H5P file upload to content bank for non admins
|
||||
And I log out
|
||||
And I log in as "teacher1"
|
||||
Given I am on "Course 1" course homepage with editing mode on
|
||||
And the following config values are set as admin:
|
||||
| unaddableblocks | | theme_boost|
|
||||
And I add the "Navigation" block if not present
|
||||
When I expand "Site pages" node
|
||||
And I click on "Content bank" "link"
|
||||
|
@ -11,6 +11,8 @@ Feature: Delete H5P file from the content bank
|
||||
And I click on "Save changes" "button"
|
||||
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:
|
||||
|
@ -18,6 +18,8 @@ Feature: Download H5P content from the content bank
|
||||
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:
|
||||
|
@ -8,6 +8,8 @@ Feature: Content bank use editor feature
|
||||
Given 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:
|
||||
|
@ -20,6 +20,8 @@ Feature: Confirm content bank events are triggered
|
||||
And I upload "h5p/tests/fixtures/filltheblanks.h5p" file to "Files" filemanager
|
||||
And I click on "Save changes" "button"
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
And the following config values are set as admin:
|
||||
| unaddableblocks | | theme_boost|
|
||||
And I add the "Navigation" block if not present
|
||||
|
||||
Scenario: Content created and uploaded events when uploading a content file
|
||||
|
@ -29,6 +29,8 @@ Feature: Navigate to different contexts in the content bank
|
||||
Scenario: Admins can view and navigate to all the contexts in the content bank
|
||||
Given 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 expand "Site pages" node
|
||||
When I click on "Content bank" "link"
|
||||
@ -64,6 +66,8 @@ Feature: Navigate to different contexts in the content bank
|
||||
And I log out
|
||||
And I am on the "C0" "Course" page logged in as "teacher"
|
||||
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 expand "Site pages" node
|
||||
When I click on "Content bank" "link"
|
||||
|
@ -23,6 +23,8 @@ Feature: Search content in the content bank
|
||||
Scenario: Admins can search content in the content bank
|
||||
Given 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 expand "Site pages" node
|
||||
And I click on "Content bank" "link"
|
||||
|
@ -27,6 +27,8 @@ Feature: Sort content in the content bank
|
||||
Scenario: Admins can order content in the content bank
|
||||
Given 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 expand "Site pages" node
|
||||
And I click on "Content bank" "link"
|
||||
@ -43,6 +45,8 @@ Feature: Sort content in the content bank
|
||||
Scenario: Admins can order content depending on the author
|
||||
Given 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 expand "Site pages" node
|
||||
And I click on "Content bank" "link"
|
||||
|
@ -12,6 +12,8 @@ Feature: Store the content bank view preference
|
||||
And I click on "Save changes" "button"
|
||||
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:
|
||||
|
@ -8,6 +8,8 @@ Feature: Make content public or unlisted
|
||||
Given 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:
|
||||
|
@ -37,6 +37,8 @@ Feature: Restricting access to course lists
|
||||
| moodle/category:viewcourselist | Allow |
|
||||
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 log out
|
||||
And the following "role assigns" exist:
|
||||
|
@ -68,6 +68,8 @@ Feature: Course activity controls works as expected
|
||||
And I show section "1"
|
||||
And <belowpage> "section" <should_see_other_sections> exist
|
||||
And section "1" should be visible
|
||||
And the following config values are set as admin:
|
||||
| unaddableblocks | | theme_boost|
|
||||
And I add the "Section links" block
|
||||
And <belowpage> "section" <should_see_other_sections> exist
|
||||
And I should see "1 2 3 4 5" in the "Section links" "block"
|
||||
@ -127,6 +129,8 @@ Feature: Course activity controls works as expected
|
||||
And I show section "1"
|
||||
And <belowpage> "section" <should_see_other_sections> exist
|
||||
And section "1" should be visible
|
||||
And the following config values are set as admin:
|
||||
| unaddableblocks | | theme_boost|
|
||||
And I add the "Section links" block
|
||||
And <belowpage> "section" <should_see_other_sections> exist
|
||||
And I should see "1 2 3 4 5" in the "Section links" "block"
|
||||
|
@ -48,6 +48,8 @@ Feature: Tagging courses
|
||||
And I log out
|
||||
And I log in as "user1"
|
||||
And I turn editing mode on
|
||||
And the following config values are set as admin:
|
||||
| unaddableblocks | | theme_boost|
|
||||
# TODO MDL-57120 "Tags" link not accessible without navigation block.
|
||||
And I add the "Navigation" block if not present
|
||||
And I click on "Site pages" "list_item" in the "Navigation" "block"
|
||||
@ -85,6 +87,8 @@ Feature: Tagging courses
|
||||
And I log out
|
||||
And I log in as "user1"
|
||||
And I turn editing mode on
|
||||
And the following config values are set as admin:
|
||||
| unaddableblocks | | theme_boost|
|
||||
# TODO MDL-57120 "Tags" link not accessible without navigation block.
|
||||
And I add the "Navigation" block if not present
|
||||
And I click on "Site pages" "list_item" in the "Navigation" "block"
|
||||
|
@ -19,6 +19,8 @@ Feature: General section does not show in navigation when empty
|
||||
| forum | Test forum name | Test forum name description | C1 | forum1 | 1 |
|
||||
And I log in as "teacher1"
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
And the following config values are set as admin:
|
||||
| unaddableblocks | | theme_boost|
|
||||
And I add the "Navigation" block if not present
|
||||
|
||||
Scenario: General section is visible in navigation when it is not empty
|
||||
|
@ -35,6 +35,8 @@ Feature: Browse course list and return back from enrolment page
|
||||
Given 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:
|
||||
|
@ -69,6 +69,8 @@ Feature: A teacher can choose whether glossary entries require approval
|
||||
And I log out
|
||||
And I log in as "teacher1"
|
||||
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 expand "Site pages" node
|
||||
And I click on "Tags" "link" in the "Navigation" "block"
|
||||
|
@ -30,6 +30,8 @@ Feature: Inline editing H5P content
|
||||
And I log in as "admin"
|
||||
# Add the navigation block.
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
And the following config values are set as admin:
|
||||
| unaddableblocks | | theme_boost|
|
||||
And I add the "Navigation" block if not present
|
||||
# Create an H5P activity with a link to the content-bank file.
|
||||
And I add a "H5P" to section "1"
|
||||
@ -90,6 +92,8 @@ Feature: Inline editing H5P content
|
||||
And I log in as "admin"
|
||||
# Add the navigation block.
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
And the following config values are set as admin:
|
||||
| unaddableblocks | | theme_boost|
|
||||
And I add the "Navigation" block if not present
|
||||
# Create an H5P activity with a copy to the content-bank file.
|
||||
And I add a "H5P" to section "1"
|
||||
|
@ -20,7 +20,6 @@ Feature: Restrict which blocks can be added to Dashboard
|
||||
And I log in as "student1"
|
||||
And I turn editing mode on
|
||||
Then the add block selector should contain "Comments" block
|
||||
And the add block selector should contain "Courses" block
|
||||
And the add block selector should contain "Text" block
|
||||
And the add block selector should contain "Tags" block
|
||||
|
||||
|
@ -24,6 +24,8 @@ Feature: Add notes to course participants
|
||||
Given 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:
|
||||
|
@ -34,6 +34,8 @@ Feature: Updating a file in the content bank after using in a course
|
||||
And I switch to the main frame
|
||||
# Now edit the content in the content bank.
|
||||
When I am on "Course1" course homepage with 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 expand "Site pages" node
|
||||
And I click on "Content bank" "link"
|
||||
@ -73,6 +75,8 @@ Feature: Updating a file in the content bank after using in a course
|
||||
And I switch to the main frame
|
||||
# Now edit the content in the content bank.
|
||||
When I am on "Course1" course homepage with 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 expand "Site pages" node
|
||||
And I click on "Content bank" "link"
|
||||
|
@ -104,6 +104,8 @@ Feature: Managers can create and manage tag collections
|
||||
And I press "Create"
|
||||
And "Yes" "text" should not exist in the "//table[contains(@class,'tag-collections-table')]//tr[contains(.,'Hiddencoll')]" "xpath_element"
|
||||
And I turn editing mode on
|
||||
And the following config values are set as admin:
|
||||
| unaddableblocks | | theme_boost|
|
||||
# TODO MDL-57120 "Tags" link not accessible without navigation block.
|
||||
And I add the "Navigation" block if not present
|
||||
And I click on "Site pages" "list_item" in the "Navigation" "block"
|
||||
|
@ -32,6 +32,8 @@ Feature: Users can edit tags to add description or rename
|
||||
And I log out
|
||||
When I log in as "editor1"
|
||||
And I turn editing mode on
|
||||
And the following config values are set as admin:
|
||||
| unaddableblocks | | theme_boost|
|
||||
# TODO MDL-57120 site "Tags" link not accessible without navigation block.
|
||||
And I add the "Navigation" block if not present
|
||||
And I click on "Site pages" "list_item" in the "Navigation" "block"
|
||||
@ -57,6 +59,8 @@ Feature: Users can edit tags to add description or rename
|
||||
Scenario: Manager can change tag description, related tags and rename the tag from tag view page
|
||||
When I log in as "manager1"
|
||||
And I turn editing mode on
|
||||
And the following config values are set as admin:
|
||||
| unaddableblocks | | theme_boost|
|
||||
# TODO MDL-57120 site "Tags" link not accessible without navigation block.
|
||||
And I add the "Navigation" block if not present
|
||||
And I click on "Site pages" "list_item" in the "Navigation" "block"
|
||||
@ -90,6 +94,8 @@ Feature: Users can edit tags to add description or rename
|
||||
Scenario: Renaming the tag from tag view page
|
||||
When I log in as "manager1"
|
||||
And I turn editing mode on
|
||||
And the following config values are set as admin:
|
||||
| unaddableblocks | | theme_boost|
|
||||
# TODO MDL-57120 site "Tags" link not accessible without navigation block.
|
||||
And I add the "Navigation" block if not present
|
||||
And I click on "Tags" "link" in the "Navigation" "block"
|
||||
|
@ -25,6 +25,8 @@ Feature: Users can flag tags and manager can reset flags
|
||||
And I log out
|
||||
And I log in as "user2"
|
||||
And I turn editing mode on
|
||||
And the following config values are set as admin:
|
||||
| unaddableblocks | | theme_boost|
|
||||
# TODO MDL-57120 site "Tags" link not accessible without navigation block.
|
||||
And I add the "Navigation" block if not present
|
||||
And I click on "Site pages" "list_item" in the "Navigation" "block"
|
||||
@ -35,6 +37,8 @@ Feature: Users can flag tags and manager can reset flags
|
||||
And I follow "Flag as inappropriate"
|
||||
And I should see "The person responsible will be notified"
|
||||
And I am on homepage
|
||||
And the following config values are set as admin:
|
||||
| unaddableblocks | | theme_boost|
|
||||
# TODO MDL-57120 site "Tags" link not accessible without navigation block.
|
||||
And I add the "Navigation" block if not present
|
||||
And I click on "Site pages" "list_item" in the "Navigation" "block"
|
||||
@ -47,6 +51,8 @@ Feature: Users can flag tags and manager can reset flags
|
||||
And I log out
|
||||
And I log in as "user3"
|
||||
And I turn editing mode on
|
||||
And the following config values are set as admin:
|
||||
| unaddableblocks | | theme_boost|
|
||||
# TODO MDL-57120 site "Tags" link not accessible without navigation block.
|
||||
And I add the "Navigation" block if not present
|
||||
And I click on "Site pages" "list_item" in the "Navigation" "block"
|
||||
|
@ -23,6 +23,8 @@ Feature: Browsing tagged items
|
||||
Scenario: Browse tag index with javascript disabled
|
||||
When I log in as "user1"
|
||||
And I turn editing mode on
|
||||
And the following config values are set as admin:
|
||||
| unaddableblocks | | theme_boost|
|
||||
# TODO MDL-57120 "Tags" link not accessible without navigation block.
|
||||
And I add the "Navigation" block if not present
|
||||
And I click on "Tags" "link" in the "Navigation" "block"
|
||||
@ -70,6 +72,8 @@ Feature: Browsing tagged items
|
||||
Scenario: Browse tag index with javascript enabled
|
||||
When I log in as "user1"
|
||||
And I turn editing mode on
|
||||
And the following config values are set as admin:
|
||||
| unaddableblocks | | theme_boost|
|
||||
# TODO MDL-57120 "Tags" link not accessible without navigation block.
|
||||
And I add the "Navigation" block if not present
|
||||
And I click on "Site pages" "list_item" in the "Navigation" "block"
|
||||
|
@ -20,6 +20,8 @@ Feature: Set the site home page and dashboard as the default home page
|
||||
Given 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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user