1 |
efrain |
1 |
@mod @mod_data @core_grades @core_form
|
|
|
2 |
Feature: Using the database 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 "activities" exist:
|
|
|
20 |
| activity | name | intro | course | idnumber |
|
|
|
21 |
| data | Test database name | n | C1 | data1 |
|
|
|
22 |
|
|
|
23 |
@javascript
|
|
|
24 |
Scenario: Database rescale grade should not be possible when users are graded
|
|
|
25 |
Given the following "mod_data > fields" exist:
|
|
|
26 |
| database | type | name | description |
|
|
|
27 |
| data1 | text | Test field name | Test field description |
|
|
|
28 |
And the following "mod_data > templates" exist:
|
|
|
29 |
| database | name |
|
|
|
30 |
| data1 | singletemplate |
|
|
|
31 |
| data1 | listtemplate |
|
|
|
32 |
| data1 | addtemplate |
|
|
|
33 |
| data1 | asearchtemplate |
|
|
|
34 |
| data1 | rsstemplate |
|
|
|
35 |
And the following "mod_data > entries" exist:
|
|
|
36 |
| database | user | Test field name |
|
|
|
37 |
| data1 | student1 | Student original entry |
|
|
|
38 |
| data1 | student1 | Student original entry 2 |
|
|
|
39 |
And I am on the "Test database name" "data activity editing" page logged in as teacher1
|
|
|
40 |
And I expand all fieldsets
|
|
|
41 |
And I set the field "Ratings > Aggregate type" to "Count of ratings"
|
|
|
42 |
And I set the field "Ratings > Type" to "Point"
|
|
|
43 |
And I press "Save and display"
|
|
|
44 |
And I select "Single view" from the "jump" singleselect
|
|
|
45 |
And I set the field "rating" to "51"
|
|
|
46 |
And I am on the "Test database name" "data activity editing" page
|
|
|
47 |
When I expand all fieldsets
|
|
|
48 |
Then the "Maximum grade" "field" should be disabled
|