Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@mod @mod_glossary @core_completion
2
Feature: Pass grade completion in the glossary activity
3
  In order to have visibility of glossary completion requirements
4
  As a student
5
  I need to be able to view my glossary completion progress
6
 
7
  Background:
8
    Given the following "users" exist:
9
      | username | firstname | lastname | email                |
10
      | student1 | Vinnie    | Student1 | student1@example.com |
11
      | teacher1 | Darrell   | Teacher1 | teacher1@example.com |
12
    And the following "courses" exist:
13
      | fullname | shortname | category | enablecompletion |
14
      | Course 1 | C1        | 0        | 1                |
15
    And the following "course enrolments" exist:
16
      | user | course | role           |
17
      | student1 | C1 | student        |
18
      | teacher1 | C1 | editingteacher |
19
    And the following "activity" exists:
20
      | activity | glossary      |
21
      | course   | C1            |
22
      | idnumber | mh1           |
23
      | name     | Music history |
24
      | section  | 1             |
25
    When I am on the "Music history" "glossary activity editing" page logged in as teacher1
26
    And I expand all fieldsets
27
    And I set the following fields to these values:
28
      | Aggregate type           | Average of ratings                                |
29
      | scale[modgrade_type]     | Point                                             |
30
      | scale[modgrade_point]    | 100                                               |
31
      | Ratings > Grade to pass  | 50                                                |
32
      | Add requirements         | 1                  |
33
      | View the activity        | 1                                                 |
34
      | Receive a grade          | 1                                                 |
35
      | Passing grade            | 1                                                 |
36
      | completionentriesenabled | 1                                                 |
37
      | completionentries        | 1                                                 |
38
    And I press "Save and display"
39
    And I log out
40
 
41
  Scenario: View automatic completion items as a teacher
42
    Given I log in as "teacher1"
43
    And I am on "Course 1" course homepage
44
    When I follow "Music history"
45
    Then "Music history" should have the "View" completion condition
46
    And "Music history" should have the "Make entries: 1" completion condition
47
    And "Music history" should have the "Receive a grade" completion condition
48
    And "Music history" should have the "Receive a passing grade" completion condition
49
 
50
  Scenario: View automatic completion items as a failing student
51
    Given I am on the "Music history" "glossary activity" page logged in as student1
52
    And the "View" completion condition of "Music history" is displayed as "done"
53
    And the "Make entries: 1" completion condition of "Music history" is displayed as "todo"
54
    And the "Receive a grade" completion condition of "Music history" is displayed as "todo"
55
    And the "Receive a passing grade" completion condition of "Music history" is displayed as "todo"
56
    When I am on "Course 1" course homepage
57
    And I follow "Music history"
58
    And I press "Add entry"
59
    And I set the following fields to these values:
60
      | Concept    | Blast beats                                               |
61
      | Definition | Repeated fast tempo hits combining bass, snare and cymbal |
62
    And I press "Save changes"
63
    And the "View" completion condition of "Music history" is displayed as "done"
64
    And the "Make entries: 1" completion condition of "Music history" is displayed as "done"
65
    And the "Receive a grade" completion condition of "Music history" is displayed as "todo"
66
    And the "Receive a passing grade" completion condition of "Music history" is displayed as "todo"
67
    And I log out
68
    And I am on the "Music history" "glossary activity" page logged in as teacher1
69
    And I set the field "rating" to "3"
70
    And I press "Rate"
71
    And I log out
72
    When I am on the "Music history" "glossary activity" page logged in as student1
73
    Then the "View" completion condition of "Music history" is displayed as "done"
74
    And the "Make entries: 1" completion condition of "Music history" is displayed as "done"
75
    And the "Receive a grade" completion condition of "Music history" is displayed as "done"
76
    And the "Receive a passing grade" completion condition of "Music history" is displayed as "failed"
77
 
78
  Scenario: View automatic completion items as a passing student
79
    Given I am on the "Music history" "glossary activity" page logged in as student1
80
    And the "View" completion condition of "Music history" is displayed as "done"
81
    And the "Make entries: 1" completion condition of "Music history" is displayed as "todo"
82
    And the "Receive a grade" completion condition of "Music history" is displayed as "todo"
83
    And the "Receive a passing grade" completion condition of "Music history" is displayed as "todo"
84
    When I am on "Course 1" course homepage
85
    And I follow "Music history"
86
    And I press "Add entry"
87
    And I set the following fields to these values:
88
      | Concept    | Blast beats                                               |
89
      | Definition | Repeated fast tempo hits combining bass, snare and cymbal |
90
    And I press "Save changes"
91
    And the "View" completion condition of "Music history" is displayed as "done"
92
    And the "Make entries: 1" completion condition of "Music history" is displayed as "done"
93
    And the "Receive a grade" completion condition of "Music history" is displayed as "todo"
94
    And the "Receive a passing grade" completion condition of "Music history" is displayed as "todo"
95
    And I log out
96
    And I log in as "teacher1"
97
    And I am on "Course 1" course homepage
98
    And I follow "Music history"
99
    And I set the field "rating" to "60"
100
    And I press "Rate"
101
    And I log out
102
    When I log in as "student1"
103
    And I am on "Course 1" course homepage
104
    And I follow "Music history"
105
    Then the "View" completion condition of "Music history" is displayed as "done"
106
    And the "Make entries: 1" completion condition of "Music history" is displayed as "done"
107
    And the "Receive a grade" completion condition of "Music history" is displayed as "done"
108
    And the "Receive a passing grade" completion condition of "Music history" is displayed as "done"