[ Index ] |
PHP Cross Reference of Unnamed Project |
[Summary view] [Print] [Text view]
1 @block @block_badges 2 Feature: Enable Block Badges in a course without badges 3 In order to view the badges block in a course 4 As a teacher 5 I can add badges block to a course and view the contents 6 7 Background: 8 Given the following "users" exist: 9 | username | firstname | lastname | email | idnumber | 10 | teacher1 | Teacher | 1 | teacher1@example.com | T1 | 11 And the following "courses" exist: 12 | fullname | shortname | category | 13 | Course 1 | C1 | 0 | 14 And the following "course enrolments" exist: 15 | user | course | role | 16 | teacher1 | C1 | editingteacher | 17 18 Scenario: Add the block to a the course when badges are disabled 19 Given I log in as "admin" 20 And the following config values are set as admin: 21 | enablebadges | 0 | 22 And I log out 23 And I log in as "teacher1" 24 And I follow "Course 1" 25 And I turn editing mode on 26 When I add the "Latest badges" block 27 Then I should see "Badges are not enabled on this site." in the "Latest badges" "block" 28 29 Scenario: Add the block to a the course when badges are enabled 30 Given I log in as "teacher1" 31 And I follow "Course 1" 32 And I turn editing mode on 33 When I add the "Latest badges" block 34 Then I should see "You have no badges to display" in the "Latest badges" "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 |