[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/blocks/myprofile/tests/behat/ -> block_myprofile_frontpage.feature (source)

   1  @block @block_myprofile
   2  Feature: The logged in user block allows users to view their profile information on the front page
   3    In order to enable the logged in user block on the frontpage
   4    As an admin
   5    I can add the logged in user block to the frontpage and view my information
   6  
   7    Background:
   8      Given the following "users" exist:
   9        | username | firstname | lastname | email                | idnumber |
  10        | teacher1 | Teacher   | One      | teacher1@example.com | T1       |
  11      And I log in as "admin"
  12      And I am on site homepage
  13      And I navigate to "Turn editing on" node in "Front page settings"
  14      And I add the "Logged in user" block
  15      And I log out
  16  
  17    Scenario: Try to view the logged in user block as a guest
  18      Given I log in as "guest"
  19      When I am on site homepage
  20      Then I should not see "Logged in user"
  21  
  22    Scenario: View the logged in user block by a logged in user
  23      Given I log in as "teacher1"
  24      When I am on site homepage
  25      Then I should see "Teacher One" in the "Logged in user" "block"


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