[ Index ] |
PHP Cross Reference of Unnamed Project |
[Summary view] [Print] [Text view]
1 @core @core_my 2 Feature: Restrict which blocks can be added to Dashboard 3 In order to restrict which blocks can be added 4 As a student I need to ensure I can add the blocks 5 As an admin I need to remove the capability to add a blocks 6 As a student I need to ensure I can't add the blocks any more 7 8 Background: 9 Given the following "users" exist: 10 | username | firstname | lastname | email | 11 | student1 | Student | 1 | student1@example.com | 12 And the following "courses" exist: 13 | fullname | shortname | format | 14 | Course 1 | C1 | topics | 15 And the following "course enrolments" exist: 16 | user | course | role | 17 | student1 | C1 | student | 18 19 Scenario: The comments block can be added to Dashboard by default 20 And I log in as "student1" 21 And I click on "Dashboard" "link" in the "Navigation" "block" 22 And I press "Customise this page" 23 Then the "Add a block" select box should contain "Comments" 24 And the "Add a block" select box should contain "Courses" 25 And the "Add a block" select box should contain "HTML" 26 And the "Add a block" select box should contain "Tags" 27 28 Scenario: Remove the ability to add the comments block to Dashboard 29 When I log in as "admin" 30 And I set the following system permissions of "Authenticated user" role: 31 | block/comments:myaddinstance | Prohibit | 32 | block/course_list:myaddinstance | Prohibit | 33 | block/html:myaddinstance | Prohibit | 34 And I log out 35 And I log in as "student1" 36 And I click on "Dashboard" "link" in the "Navigation" "block" 37 And I press "Customise this page" 38 Then the "Add a block" select box should not contain "Comments" 39 And the "Add a block" select box should not contain "Courses" 40 And the "Add a block" select box should not contain "HTML" 41 And the "Add a block" select box should contain "Tags"
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 |