░▒▓████████████████████████████████▓▒░ ░▒▓█ ▓▒░ ░▒▓█ ~ S W A M P ~ ▓▒░ ░▒▓█ ▓▒░ ░▒▓████████████████████████████████▓▒░
pplmvsvm
LOCATION:
/var/www/moodle/public/blocks/course_summary/tests/behat
☗ ROOT
↻ REFRESH
✎ CARVE FLESH
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"
CANCEL
Name
Type
Size
Modified
Actions
↩ ..
DIR
—
—
📄 block_course_summary_course.feature
FEATURE
1.7 KB
2026-02-11 01:44
EDIT
📄 block_course_summary_frontpage.feature
FEATURE
1.5 KB
2026-02-11 01:44
EDIT