X7ROOT File Manager
Current Path:
/home/cbholdings/pasukulu/blocks/course_summary/tests/behat
home
/
cbholdings
/
pasukulu
/
blocks
/
course_summary
/
tests
/
behat
/
📁
..
📄
block_course_summary_course.feature
(1.72 KB)
📄
block_course_summary_frontpage.feature
(1.48 KB)
Editing: block_course_summary_frontpage.feature
@block @block_course_summary Feature: Course summary block used on the frontpage In order to help particpants know the summary of a site As admin I can use the course summary block on the frontpage Background: Given I log in as "admin" And I enable "course_summary" "block" plugin And the following "blocks" exist: | blockname | contextlevel | reference | pagetypepattern | defaultregion | | course_summary | System | 1 | site-index | side-pre | And I am on site homepage And I navigate to "Site home > Site home settings" in site administration And I set the following fields to these values: | summary | Proved the summary block works! | And I press "Save changes" And I log out # The course summary block a default front page block, so no need to add it. Scenario: Guest can view site summary When I am on site homepage Then "Course/site summary" "block" should exist And I should not see "Course summary" in the "Course/site summary" "block" And I should see "Proved the summary block works!" in the "Course/site summary" "block" Scenario: Admin can not see edit icon when edit mode is off When I log in as "admin" And I am on site homepage Then I should see "Proved the summary block works!" in the "Course/site summary" "block" And I should not see "Course summary" in the "Course/site summary" "block" And "Edit" "link" should not exist in the "Course/site summary" "block"
Upload File
Create Folder