@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 navigate to "Edit settings" node in "Front page settings" 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 homepage Then "Course/site summary" "block" should exist And I should see "Proved the summary block works!" in the "Course/site summary" "block" Scenario: Admin can see an edit icon when edit mode is on and follow it to the front page settings When I log in as "admin" And I am on homepage And I follow "Turn editing on" Then I should see "Proved the summary block works!" in the "Course/site summary" "block" And I click on "Edit" "link" in the "Course/site summary" "block" Then I should see "Front page settings" in the "h2" "css_element" Scenario: Admin can not see edit icon when edit mode is off When I log in as "admin" And I am on homepage Then I should see "Proved the summary block works!" in the "Course/site summary" "block" And "Edit" "link" should not exist in the "Course/site summary" "block"