1 |
efrain |
1 |
@mod @mod_forum @core_grades @core_form
|
|
|
2 |
Feature: Using the forum 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 | forum |
|
|
|
22 |
| name | Test forum name |
|
|
|
23 |
| idnumber | forum1 |
|
|
|
24 |
And the following "mod_forum > discussions" exist:
|
|
|
25 |
| user | forum | name | message |
|
|
|
26 |
| student1 | forum1 | Discussion subject | Test post in forum 1 |
|
|
|
27 |
|
|
|
28 |
@javascript
|
|
|
29 |
Scenario: Forum rescale grade should not be possible when users are graded
|
|
|
30 |
Given I am on the "Test forum name" "forum activity editing" page logged in as teacher1
|
|
|
31 |
And I expand all fieldsets
|
|
|
32 |
And I set the field "Ratings > Aggregate type" to "Count of ratings"
|
|
|
33 |
And I set the field "Ratings > Type" to "Point"
|
|
|
34 |
And I press "Save and return to course"
|
|
|
35 |
And I am on the "Test forum name" "forum activity" page
|
|
|
36 |
And I follow "Discussion subject"
|
|
|
37 |
And I set the field "rating" to "30"
|
|
|
38 |
When I am on the "Test forum name" "forum activity editing" page
|
|
|
39 |
And I expand all fieldsets
|
|
|
40 |
Then the "Maximum grade" "field" should be disabled
|