Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@mod @mod_glossary @core_grades @core_form
2
Feature: Using the glossary activities which support point scale
3
  validate if we can change the maximum grade when users are graded
4
  As a teacher
5
  I need to know whether I can not edit value of Maximum grade input field
6
 
7
  Background:
8
    Given the following "users" exist:
9
      | username | firstname | lastname | email |
10
      | student1 | Student | 1 | student1@example.com |
11
      | teacher1 | Teacher | 1 | teacher1@example.com |
12
    And the following "courses" exist:
13
      | fullname | shortname | category | groupmode |
14
      | Course 1 | C1 | 0 | 1 |
15
    And the following "course enrolments" exist:
16
      | user | course | role |
17
      | teacher1 | C1 | editingteacher |
18
      | student1 | C1 | student |
19
    And the following "activity" exists:
20
      | course      | C1                        |
21
      | activity    | glossary                  |
22
      | name        | Test glossary name        |
23
      | description | Test glossary description |
24
      | idnumber    | glossary1                 |
25
 
26
  @javascript
27
  Scenario: Glossary rescale grade should not be possible when users are graded
28
    Given I am on the "Test glossary name" "glossary activity" page logged in as student1
29
    And I press "Add entry"
30
    And I set the following fields to these values:
31
      | Concept    | Testing score                   |
32
      | Definition | Scoring high on tests           |
33
    And I press "Save changes"
34
    And I log out
35
    And I am on the "Test glossary name" "glossary activity editing" page logged in as teacher1
36
    And I expand all fieldsets
37
    And I set the field "Ratings > Aggregate type" to "Count of ratings"
38
    And I set the field "Ratings > Type" to "Point"
39
    And I press "Save and return to course"
40
    And I am on the "Test glossary name" "glossary activity" page
41
    And I set the field "rating" to "50"
42
    When I am on the "Test glossary name" "glossary activity editing" page
43
    And I expand all fieldsets
44
    Then the "Maximum grade" "field" should be disabled