Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@block @block_activity_results
2
Feature: The activity results block doesn't display student scores for unsupported activity
3
  In order to be display student scores
4
  As a user
5
  I need to properly configure the activity results block
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
    And I log in as "teacher1"
18
    And I am on "Course 1" course homepage with editing mode on
19
 
20
  Scenario: Try to configure the block to use an activity without grades
21
    Given the following "activities" exist:
22
      | activity   | name            | intro          | course | section | idnumber | assignsubmission_file_enabled |
23
      | assign     | Test assignment | Offline text   | C1     | 1       | assign1  | 0                             |
24
    And the following "blocks" exist:
25
      | blockname        | contextlevel | reference | pagetypepattern | defaultregion |
26
      | activity_results | Course       | C1        | course-view-*   | side-pre      |
27
    And I am on "Course 1" course homepage
28
    And I configure the "Activity results" block
29
    And I set the following fields to these values:
30
      | config_showbest | 1 |
31
      | config_showworst | 0 |
32
      | config_gradeformat | Percentages |
33
      | config_nameformat | Display full names |
34
    And I press "Save changes"
35
    When I am on the "Test assignment" "assign activity editing" page
36
    And I set the following fields to these values:
37
      | id_grade_modgrade_type | None |
38
    And I press "Save and return to course"
39
    Then I should see "Error: the activity selected uses a grading method that is not supported by this block." in the "Activity results" "block"