11 |
efrain |
1 |
@mod @mod_workshop
|
|
|
2 |
Feature: Workshop self-assessment
|
|
|
3 |
In order to use workshop activity
|
|
|
4 |
As a student
|
|
|
5 |
I need to be able to add and assess my own submission
|
|
|
6 |
|
|
|
7 |
Background:
|
|
|
8 |
Given the following "users" exist:
|
|
|
9 |
| username | firstname | lastname | email |
|
|
|
10 |
| student1 | Student | One | student1@example.com |
|
|
|
11 |
| student2 | Student | Two | student2@example.com |
|
|
|
12 |
| student3 | Student | Three | student3@example.com |
|
|
|
13 |
| teacher1 | Teacher | One | teacher1@example.com |
|
|
|
14 |
And the following "courses" exist:
|
|
|
15 |
| fullname | shortname |
|
|
|
16 |
| Course1 | c1 |
|
|
|
17 |
And the following "course enrolments" exist:
|
|
|
18 |
| user | course | role |
|
|
|
19 |
| student1 | c1 | student |
|
|
|
20 |
| student2 | c1 | student |
|
|
|
21 |
| student3 | c1 | student |
|
|
|
22 |
| teacher1 | c1 | editingteacher |
|
|
|
23 |
And the following "activities" exist:
|
|
|
24 |
| activity | name | course | idnumber | useselfassessment |
|
|
|
25 |
| workshop | TestWorkshop | c1 | workshop1 | 1 |
|
|
|
26 |
And I am on the "TestWorkshop" "workshop activity" page logged in as teacher1
|
|
|
27 |
And I edit assessment form in workshop "TestWorkshop" as:
|
|
|
28 |
| id_description__idx_0_editor | Aspect1 |
|
|
|
29 |
And I change phase in workshop "TestWorkshop" to "Submission phase"
|
|
|
30 |
And I am on the "TestWorkshop" "workshop activity" page logged in as student1
|
|
|
31 |
And I add a submission in workshop "TestWorkshop" as:
|
|
|
32 |
| Title | Submission1 |
|
|
|
33 |
| Submission content | Some content |
|
|
|
34 |
And I am on the "TestWorkshop" "workshop activity" page logged in as student2
|
|
|
35 |
And I add a submission in workshop "TestWorkshop" as:
|
|
|
36 |
| Title | Submission2 |
|
|
|
37 |
| Submission content | Some content |
|
|
|
38 |
And I am on the "TestWorkshop" "workshop activity" page logged in as student3
|
|
|
39 |
And I add a submission in workshop "TestWorkshop" as:
|
|
|
40 |
| Title | Submission3 |
|
|
|
41 |
| Submission content | Some content |
|
|
|
42 |
And I am on the "TestWorkshop" "workshop activity" page logged in as teacher1
|
|
|
43 |
And I click on "Submissions allocation" "link"
|
|
|
44 |
And I select "Random allocation" from the "jump" singleselect
|
|
|
45 |
And I set the following fields to these values:
|
|
|
46 |
| addselfassessment | 1 |
|
|
|
47 |
And I press "Save changes"
|
|
|
48 |
|
|
|
49 |
Scenario: Student can assess their own submission
|
|
|
50 |
When I select "Manual allocation" from the "jump" singleselect
|
|
|
51 |
# Verify that each student has themself listed as a reviewer.
|
|
|
52 |
And the following should exist in the "allocations" table:
|
|
|
53 |
| -1- | -2- | -3- |
|
|
|
54 |
| Student One | Student One | Student One |
|
|
|
55 |
| Student Three | Student Three | Student Three |
|
|
|
56 |
| Student Two | Student Two | Student Two |
|
|
|
57 |
And I change phase in workshop "TestWorkshop" to "Assessment phase"
|
|
|
58 |
# Confirm that the student can assess their own submission.
|
|
|
59 |
And I am on the "TestWorkshop" "workshop activity" page logged in as student1
|
|
|
60 |
Then I should see "Assess yourself"
|
|
|
61 |
And the "Assess" "button" should be enabled
|
|
|
62 |
And I assess submission "Student One" in workshop "TestWorkshop" as:
|
|
|
63 |
| grade__idx_0 | 10 / 10 |
|
|
|
64 |
| peercomment__idx_0 | My work is amazing hence the grade. |
|
|
|
65 |
| Feedback for the author | Good work as always |
|
|
|
66 |
And the "Re-assess" "button" should be enabled
|
|
|
67 |
And I should see "Already graded"
|
|
|
68 |
# As teacher, confirm that Student One assessed his own work and received a grade.
|
|
|
69 |
And I am on the TestWorkshop "workshop activity" page logged in as teacher1
|
|
|
70 |
And I should see grade "80" for workshop participant "Student One" set by peer "Student One"
|