1 @block @block_course_summary
2 Feature: Course summary block used on the frontpage
3 In order to help particpants know the summary of a site
5 I can use the course summary block on the frontpage
8 Given I log in as "admin"
9 And I navigate to "Edit settings" node in "Front page settings"
10 And I set the following fields to these values:
11 | summary | Proved the summary block works! |
12 And I press "Save changes"
14 # The course summary block a default front page block, so no need to add it.
16 Scenario: Guest can view site summary
18 Then "block_course_summary" "block" should exist
19 And I should see "Proved the summary block works!" in the "block_course_summary" "block"
21 Scenario: Admin can see an edit icon when edit mode is on and follow it to the front page settings
22 When I log in as "admin"
24 And I follow "Turn editing on"
25 Then I should see "Proved the summary block works!" in the "block_course_summary" "block"
26 And I click on "Edit" "link" in the "block_course_summary" "block"
27 Then I should see "Front page settings" in the "h2" "css_element"
29 Scenario: Admin can not see edit icon when edit mode is off
30 When I log in as "teacher1"
32 Then I should see "Proved the summary block works!" in the "block_course_summary" "block"
33 And "Edit" "link" should not exist in the "block_course_summary" "block"