芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/www/cepali/blocks/myprofile/tests/behat/block_myprofile_frontpage.feature
@block @block_myprofile Feature: The logged in user block allows users to view their profile information on the front page In order to enable the logged in user block on the frontpage As an admin I can add the logged in user block to the frontpage and view my information Background: Given the following "users" exist: | username | firstname | lastname | email | idnumber | | teacher1 | Teacher | One | 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 "Logged in user" block And I log out Scenario: Try to view the logged in user block as a guest Given I log in as "guest" When I am on site homepage Then I should not see "Logged in user" Scenario: View the logged in user block by a logged in user Given I log in as "teacher1" When I am on site homepage Then I should see "Teacher One" in the "Logged in user" "block"