[ Index ] |
PHP Cross Reference of Unnamed Project |
[Summary view] [Print] [Text view]
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 an course page 4 As a teacher 5 I can add the online users block to a course page 6 7 Background: 8 Given the following "courses" exist: 9 | fullname | shortname | category | 10 | Course 1 | C1 | 0 | 11 And the following "users" exist: 12 | username | firstname | lastname | email | 13 | teacher1 | Teacher | 1 | teacher1@example.com | 14 | student1 | Student | 1 | student1@example.com | 15 | student2 | Student | 2 | student2@example.com | 16 17 And the following "course enrolments" exist: 18 | user | course | role | 19 | teacher1 | C1 | editingteacher | 20 | student1 | C1 | student | 21 22 Scenario: Add the online users on course page and see myself 23 Given I log in as "teacher1" 24 And I follow "Course 1" 25 And I turn editing mode on 26 When I add the "Online users" block 27 Then I should see "Teacher 1" in the "Online users" "block" 28 29 Scenario: Add the online users on course page and see other logged in users 30 Given I log in as "teacher1" 31 And I follow "Course 1" 32 And I turn editing mode on 33 And I add the "Online users" block 34 And I log out 35 And I log in as "student2" 36 And I log out 37 When I log in as "student1" 38 And I follow "Course 1" 39 Then I should see "Teacher 1" in the "Online users" "block" 40 And I should see "Student 1" in the "Online users" "block" 41 And I should not see "Student 2" in the "Online users" "block"
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Thu Aug 11 10:00:09 2016 | Cross-referenced by PHPXref 0.7.1 |