AutorÃa | Ultima modificación | Ver Log |
@mod @mod_glossary @core_grades @core_form
Feature: Using the glossary activities which support point scale
validate if we can change the maximum grade when users are graded
As a teacher
I need to know whether I can not edit value of Maximum grade input field
Background:
Given the following "users" exist:
| username | firstname | lastname | email |
| student1 | Student | 1 | student1@example.com |
| teacher1 | Teacher | 1 | teacher1@example.com |
And the following "courses" exist:
| fullname | shortname | category | groupmode |
| Course 1 | C1 | 0 | 1 |
And the following "course enrolments" exist:
| user | course | role |
| teacher1 | C1 | editingteacher |
| student1 | C1 | student |
And the following "activity" exists:
| course | C1 |
| activity | glossary |
| name | Test glossary name |
| description | Test glossary description |
| idnumber | glossary1 |
@javascript
Scenario: Glossary rescale grade should not be possible when users are graded
Given I am on the "Test glossary name" "glossary activity" page logged in as student1
And I press "Add entry"
And I set the following fields to these values:
| Concept | Testing score |
| Definition | Scoring high on tests |
And I press "Save changes"
And I log out
And I am on the "Test glossary name" "glossary activity editing" page logged in as teacher1
And I expand all fieldsets
And I set the field "Ratings > Aggregate type" to "Count of ratings"
And I set the field "Ratings > Type" to "Point"
And I press "Save and return to course"
And I am on the "Test glossary name" "glossary activity" page
And I set the field "rating" to "50"
When I am on the "Test glossary name" "glossary activity editing" page
And I expand all fieldsets
Then the "Maximum grade" "field" should be disabled