Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 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 "teacher1"
20
    And I am on "Course 1" course homepage with editing mode on
21
    When I add the "Latest badges" block
22
    And the following config values are set as admin:
23
      | enablebadges | 0 |
24
    And I reload the page
25
    Then I should see "Badges are not enabled on this site." in the "Latest badges" "block"
26
 
27
  Scenario: Add the block to a the course when badges are enabled
28
    Given I log in as "teacher1"
29
    And I am on "Course 1" course homepage with editing mode on
30
    When I add the "Latest badges" block
31
    Then I should see "You have no badges to display" in the "Latest badges" "block"