Your IP : 216.73.216.95


Current Path : /var/www/ljmtc/cbt/blocks/comments/tests/behat/
Upload File :
Current File : /var/www/ljmtc/cbt/blocks/comments/tests/behat/block_comment_frontpage.feature

@block @block_comments
Feature: Enable Block comments on the frontpage and view comments
  In order to enable the comments block on the frontpage
  As a admin
  I can add the comments block to the frontpage

  Scenario: Add the comments block on the frontpage and add comments
    Given the following "users" exist:
      | username | firstname | lastname | email | idnumber |
      | teacher1 | Teacher | 1 | teacher1@example.com | T1 |
    And I log in as "admin"
    And I am on site homepage
    And I navigate to "Turn editing on" in current page administration
    And I add the "Comments" block
    And I follow "Show comments"
    And I add "I'm a comment from admin" comment to comments block
    And I log out
    When I log in as "teacher1"
    And I am on site homepage
    And I follow "Show comments"
    Then I should see "I'm a comment from admin"