1 |
efrain |
1 |
@mod @mod_workshop
|
|
|
2 |
Feature: Workshop grading strategy selection
|
|
|
3 |
In order to verify that the assessment form is displayed correctly
|
|
|
4 |
As a teacher
|
|
|
5 |
I need to choose one of the four workshop grading strategies
|
|
|
6 |
|
|
|
7 |
Background:
|
|
|
8 |
Given the following "users" exist:
|
|
|
9 |
| username | firstname | lastname | email |
|
|
|
10 |
| teacher1 | Mary | Teacher | teacher1@example.com |
|
|
|
11 |
And the following "courses" exist:
|
|
|
12 |
| fullname | shortname |
|
|
|
13 |
| Course 1 | C1 |
|
|
|
14 |
And the following "course enrolments" exist:
|
|
|
15 |
| user | course | role |
|
|
|
16 |
| teacher1 | C1 | editingteacher |
|
|
|
17 |
And the following "activities" exist:
|
|
|
18 |
| activity | course | name |
|
|
|
19 |
| workshop | C1 | Workshop 1 |
|
|
|
20 |
And I am on the "Workshop 1" "workshop activity editing" page logged in as teacher1
|
|
|
21 |
|
|
|
22 |
Scenario: Choose accumulative grading as grading strategy
|
|
|
23 |
Given I set the following fields to these values:
|
|
|
24 |
| strategy | accumulative |
|
|
|
25 |
And I press "Save and display"
|
|
|
26 |
When I click on "Assessment form" "link"
|
|
|
27 |
Then I should see "Accumulative grading"
|
|
|
28 |
And I should see "Description"
|
|
|
29 |
And I should see "Best possible grade / Scale to use"
|
|
|
30 |
And I should see "Weight"
|
|
|
31 |
And I set the following fields to these values:
|
|
|
32 |
| id_description__idx_0_editor | Aspect 1 |
|
|
|
33 |
| id_description__idx_1_editor | Aspect 2 |
|
|
|
34 |
And I press "Save and preview"
|
|
|
35 |
And I should see "Assessment form"
|
|
|
36 |
And I should see "Aspect 1"
|
|
|
37 |
And I should see "Grade for Aspect 1"
|
|
|
38 |
And I should see "Comment for Aspect 1"
|
|
|
39 |
And I should see "Aspect 2"
|
|
|
40 |
And I should see "Grade for Aspect 2"
|
|
|
41 |
And I should see "Comment for Aspect 2"
|
|
|
42 |
And I should see "Overall feedback"
|
|
|
43 |
And I should see "Feedback for the author"
|
|
|
44 |
And I press "Back to editing form"
|
|
|
45 |
And I should see "Accumulative grading"
|
|
|
46 |
|
|
|
47 |
Scenario: Choose comments as grading strategy
|
|
|
48 |
Given I set the following fields to these values:
|
|
|
49 |
| strategy | comments |
|
|
|
50 |
And I press "Save and display"
|
|
|
51 |
When I click on "Assessment form" "link"
|
|
|
52 |
Then I should see "Comments"
|
|
|
53 |
And I should see "Description"
|
|
|
54 |
And I set the following fields to these values:
|
|
|
55 |
| id_description__idx_0_editor | Aspect 1 |
|
|
|
56 |
| id_description__idx_1_editor | Aspect 2 |
|
|
|
57 |
And I press "Save and preview"
|
|
|
58 |
And I should see "Assessment form"
|
|
|
59 |
And I should see "Aspect 1"
|
|
|
60 |
And I should see "Comment for Aspect 1"
|
|
|
61 |
And I should see "Aspect 2"
|
|
|
62 |
And I should see "Comment for Aspect 2"
|
|
|
63 |
And I should see "Overall feedback"
|
|
|
64 |
And I should see "Feedback for the author"
|
|
|
65 |
And I press "Back to editing form"
|
|
|
66 |
And I should see "Comments"
|
|
|
67 |
|
|
|
68 |
Scenario: Choose number of errors as grading strategy
|
|
|
69 |
Given I set the following fields to these values:
|
|
|
70 |
| strategy | numerrors |
|
|
|
71 |
And I press "Save and display"
|
|
|
72 |
When I click on "Assessment form" "link"
|
|
|
73 |
Then I should see "Number of errors"
|
|
|
74 |
And I should see "Description"
|
|
|
75 |
And I should see "Word for the error"
|
|
|
76 |
And I should see "Word for the success"
|
|
|
77 |
And I should see "Weight"
|
|
|
78 |
And I set the following fields to these values:
|
|
|
79 |
| id_description__idx_0_editor | Assertion 1 |
|
|
|
80 |
| id_description__idx_1_editor | Assertion 2 |
|
|
|
81 |
And I press "Save and preview"
|
|
|
82 |
And I should see "Assessment form"
|
|
|
83 |
And I should see "Assertion 1"
|
|
|
84 |
And I should see "Your assessment for Assertion 1"
|
|
|
85 |
And I should see "Comment for Assertion 1"
|
|
|
86 |
And I should see "Assertion 2"
|
|
|
87 |
And I should see "Your assessment for Assertion 2"
|
|
|
88 |
And I should see "Comment for Assertion 2"
|
|
|
89 |
And I should see "Overall feedback"
|
|
|
90 |
And I should see "Feedback for the author"
|
|
|
91 |
And I press "Back to editing form"
|
|
|
92 |
And I should see "Number of errors"
|
|
|
93 |
|
|
|
94 |
Scenario: Choose rubric as grading strategy
|
|
|
95 |
Given I set the following fields to these values:
|
|
|
96 |
| strategy | rubric |
|
|
|
97 |
And I press "Save and display"
|
|
|
98 |
When I click on "Assessment form" "link"
|
|
|
99 |
Then I should see "Rubric"
|
|
|
100 |
And I should see "Description"
|
|
|
101 |
And I should see "Level grade and definition"
|
|
|
102 |
And I set the following fields to these values:
|
|
|
103 |
| id_description__idx_0_editor | Criterion 1 |
|
|
|
104 |
| definition__idx_0__idy_0 | One zero |
|
|
|
105 |
| id_description__idx_1_editor | Criterion 2 |
|
|
|
106 |
| definition__idx_1__idy_0 | Two zero |
|
|
|
107 |
And I press "Save and preview"
|
|
|
108 |
And I should see "Assessment form"
|
|
|
109 |
And I should see "Criterion 1"
|
|
|
110 |
And I should see "One zero"
|
|
|
111 |
And I should see "Criterion 2"
|
|
|
112 |
And I should see "Two zero"
|
|
|
113 |
And I should see "Overall feedback"
|
|
|
114 |
And I should see "Feedback for the author"
|
|
|
115 |
And I press "Back to editing form"
|
|
|
116 |
And I should see "Rubric"
|