[ Index ]

PHP Cross Reference of moodle-2.8

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 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"
  13      And I log out
  14      # The course summary block a default front page block, so no need to add it.
  15  
  16    Scenario: Guest can view site summary
  17      When I am on homepage
  18      Then "Course/site summary" "block" should exist
  19      And I should see "Proved the summary block works!" in the "Course/site summary" "block"
  20  
  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"
  23      And I am on homepage
  24      And I follow "Turn editing on"
  25      Then I should see "Proved the summary block works!" in the "Course/site summary" "block"
  26      And I click on "Edit" "link" in the "Course/site summary" "block"
  27      Then I should see "Front page settings" in the "h2" "css_element"
  28  
  29    Scenario: Admin can not see edit icon when edit mode is off
  30      When I log in as "admin"
  31      And I am on homepage
  32      Then I should see "Proved the summary block works!" in the "Course/site summary" "block"
  33      And "Edit" "link" should not exist in the "Course/site summary" "block"


Generated: Fri Nov 28 20:29:05 2014 Cross-referenced by PHPXref 0.7.1