[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/blocks/online_users/tests/behat/ -> block_online_users_dashboard.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 use the online users block on the dashboard
   4    As a user
   5    I can view the online users block on my dashboard
   6  
   7    Background:
   8      Given the following "users" exist:
   9        | username | firstname | lastname | email                |
  10        | teacher1 | Teacher   | 1        | teacher1@example.com |
  11        | student1 | Student   | 1        | student1@example.com |
  12        | student2 | Student   | 2        | student2@example.com |
  13  
  14    Scenario: View the online users block on the dashboard and see myself
  15      Given I log in as "teacher1"
  16      Then I should see "Teacher 1" in the "Online users" "block"
  17  
  18    Scenario: View the online users block on the dashboard and see other logged in users
  19      Given I log in as "student2"
  20      And I log out
  21      And I log in as "student1"
  22      And I log out
  23      When  I log in as "teacher1"
  24      Then I should see "Teacher 1" in the "Online users" "block"
  25      And I should see "Student 1" in the "Online users" "block"
  26      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