AutorÃa | Ultima modificación | Ver Log |
@block @block_badgesFeature: Enable Block Badges in a course without badgesIn order to view the badges block in a courseAs a teacherI can add badges block to a course and view the contentsBackground:Given the following "users" exist:| username | firstname | lastname | email | idnumber || teacher1 | Teacher | 1 | teacher1@example.com | T1 |And the following "courses" exist:| fullname | shortname | category || Course 1 | C1 | 0 |And the following "course enrolments" exist:| user | course | role || teacher1 | C1 | editingteacher |Scenario: Add the block to a the course when badges are disabledGiven I log in as "teacher1"And I am on "Course 1" course homepage with editing mode onWhen I add the "Latest badges" blockAnd the following config values are set as admin:| enablebadges | 0 |And I reload the pageThen I should see "Badges are not enabled on this site." in the "Latest badges" "block"Scenario: Add the block to a the course when badges are enabledGiven I log in as "teacher1"And I am on "Course 1" course homepage with editing mode onWhen I add the "Latest badges" blockThen I should see "You have no badges to display" in the "Latest badges" "block"