1 |
efrain |
1 |
@mod @mod_lesson @core_grades @core_form
|
|
|
2 |
Feature: Using the lesson 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 | lesson |
|
|
|
22 |
| name | Test lesson name |
|
|
|
23 |
| idnumber | lesson1 |
|
|
|
24 |
|
|
|
25 |
@javascript
|
|
|
26 |
Scenario: Lesson rescale grade should not be possible when users are graded
|
|
|
27 |
Given the following "mod_lesson > page" exist:
|
|
|
28 |
| lesson | qtype | title | content |
|
|
|
29 |
| Test lesson name | numeric | Numerical question | What is 1 + 2? |
|
|
|
30 |
And the following "mod_lesson > answers" exist:
|
|
|
31 |
| page | answer | jumpto | score |
|
|
|
32 |
| Numerical question | 3 | End of lesson | 1 |
|
|
|
33 |
| Numerical question | @#wronganswer#@ | Next page | 0 |
|
|
|
34 |
And I am on the "Test lesson name" "lesson activity" page logged in as student1
|
|
|
35 |
And I set the field "Your answer" to "5"
|
|
|
36 |
And I press "Submit"
|
|
|
37 |
And I am on the "Test lesson name" "lesson activity editing" page logged in as teacher1
|
|
|
38 |
And I expand all fieldsets
|
|
|
39 |
Then the "Maximum grade" "field" should be disabled
|