[ Index ] |
PHP Cross Reference of Unnamed Project |
[Summary view] [Print] [Text view]
1 @block @block_participants 2 Feature: People Block used in a course 3 In order to view participants in a course 4 As a teacher 5 I can add the people block to a course 6 7 Background: 8 Given the following "courses" exist: 9 | fullname | shortname | category | 10 | Course 1 | C101 | 0 | 11 And the following "users" exist: 12 | username | firstname | lastname | email | 13 | student1 | Sam | Student | student1@example.com | 14 And the following "course enrolments" exist: 15 | user | course | role | 16 | student1 | C101 | student | 17 And I log in as "admin" 18 And I am on site homepage 19 And I follow "Course 1" 20 And I turn editing mode on 21 And I add the "People" block 22 And I log out 23 24 Scenario: Student can view participants link 25 When I log in as "student1" 26 And I follow "Course 1" 27 Then "People" "block" should exist 28 And I should see "Participants" in the "People" "block" 29 30 Scenario: Student can follow participants link and be directed to the correct page 31 When I log in as "student1" 32 And I follow "Course 1" 33 And I click on "Participants" "link" in the "People" "block" 34 Then I should see "All participants" in the "h3" "css_element" 35 And the "My courses" select box should contain "C101" 36 37 Scenario: Student without permission can not view participants link 38 Given the following "permission overrides" exist: 39 | capability | permission | role | contextlevel | reference | 40 | moodle/course:viewparticipants | Prevent | student | Course | C101 | 41 When I log in as "student1" 42 And I follow "Course 1" 43 Then "People" "block" should not exist
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 |