[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/blocks/online_users/tests/behat/ -> block_online_users_frontpage.feature (source)

   1  @block @block_online_users
   2  Feature: The online users block allow you to see who is currently online
   3    In order to enable the online users block on the front page page
   4    As an admin
   5    I can add the online users block to the front page page
   6  
   7    Background:
   8      Given the following "users" exist:
   9        | username | firstname | lastname | email                |
  10        | student1 | Student   | 1        | student1@example.com |
  11        | student2 | Student   | 2        | student2@example.com |
  12  
  13    Scenario: View the online users block on the front page and see myself
  14      Given I log in as "admin"
  15      And I am on site homepage
  16      And I navigate to "Turn editing on" node in "Front page settings"
  17      When I add the "Online users" block
  18      Then I should see "Admin User" in the "Online users" "block"
  19  
  20    Scenario: View the online users block on the front page as a logged in user
  21      Given I log in as "admin"
  22      And I am on site homepage
  23      And I navigate to "Turn editing on" node in "Front page settings"
  24      And I add the "Online users" block
  25      And I log out
  26      And I log in as "student2"
  27      And I log out
  28      When I log in as "student1"
  29      And I am on site homepage
  30      Then I should see "Admin User" in the "Online users" "block"
  31      And I should see "Student 1" in the "Online users" "block"
  32      And I should see "Student 2" in the "Online users" "block"
  33  
  34    Scenario: View the online users block on the front page as a guest
  35      Given I log in as "admin"
  36      And I am on site homepage
  37      And I navigate to "Turn editing on" node in "Front page settings"
  38      And I add the "Online users" block
  39      And I log out
  40      And I log in as "student2"
  41      And I log out
  42      And I log in as "student1"
  43      And I log out
  44      When I log in as "guest"
  45      And I am on site homepage
  46      Then I should see "Admin User" in the "Online users" "block"
  47      And I should see "Student 1" in the "Online users" "block"
  48      And I should see "Student 2" in the "Online users" "block"


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