AutorÃa | Ultima modificación | Ver Log |
@mod @mod_lesson @core_grades @core_formFeature: Using the lesson activities which support point scalevalidate if we can change the maximum grade when users are gradedAs a teacherI need to know whether I can not edit value of Maximum grade input fieldBackground: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 | lesson || name | Test lesson name || idnumber | lesson1 |@javascriptScenario: Lesson rescale grade should not be possible when users are gradedGiven the following "mod_lesson > page" exist:| lesson | qtype | title | content || Test lesson name | numeric | Numerical question | What is 1 + 2? |And the following "mod_lesson > answers" exist:| page | answer | jumpto | score || Numerical question | 3 | End of lesson | 1 || Numerical question | @#wronganswer#@ | Next page | 0 |And I am on the "Test lesson name" "lesson activity" page logged in as student1And I set the field "Your answer" to "5"And I press "Submit"And I am on the "Test lesson name" "lesson activity editing" page logged in as teacher1And I expand all fieldsetsThen the "Maximum grade" "field" should be disabled