[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/blocks/course_summary/tests/behat/ -> block_course_summary_frontpage.feature (source)

   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
   4    As admin
   5    I can use the course summary block on the frontpage
   6  
   7    Background:
   8      Given I log in as "admin"
   9      And I am on site homepage
  10      And I navigate to "Edit settings" node in "Front page settings"
  11      And I set the following fields to these values:
  12        | summary | Proved the summary block works! |
  13      And I press "Save changes"
  14      And I log out
  15      # The course summary block a default front page block, so no need to add it.
  16  
  17    Scenario: Guest can view site summary
  18      When I am on site homepage
  19      Then "Course/site summary" "block" should exist
  20      And I should not see "Course summary" in the "Course/site summary" "block"
  21      And I should see "Proved the summary block works!" in the "Course/site summary" "block"
  22  
  23    Scenario: Admin can see an edit icon when edit mode is on and follow it to the front page settings
  24      When I log in as "admin"
  25      And I am on site homepage
  26      And I follow "Turn editing on"
  27      Then I should see "Proved the summary block works!" in the "Course/site summary" "block"
  28      And I should not see "Course summary" in the "Course/site summary" "block"
  29      And I click on "Edit" "link" in the "Course/site summary" "block"
  30      Then I should see "Front page settings" in the "h2" "css_element"
  31  
  32    Scenario: Admin can not see edit icon when edit mode is off
  33      When I log in as "admin"
  34      And I am on site homepage
  35      Then I should see "Proved the summary block works!" in the "Course/site summary" "block"
  36      And I should not see "Course summary" in the "Course/site summary" "block"
  37      And "Edit" "link" should not exist in the "Course/site summary" "block"


Generated: Thu Aug 11 10:00:09 2016 Cross-referenced by PHPXref 0.7.1