1 |
efrain |
1 |
@mod @mod_workshop
|
|
|
2 |
Feature: Workshop assessment navigation display for reviewers
|
|
|
3 |
As a reviewer
|
|
|
4 |
I need to be able to see the "Save and show next" button during assessment
|
|
|
5 |
|
|
|
6 |
Background:
|
|
|
7 |
Given the following "users" exist:
|
|
|
8 |
| username | firstname | lastname | email |
|
|
|
9 |
| teacher1 | Teacher | 1 | teacher1@example.com |
|
|
|
10 |
| student1 | Student | 1 | student1@example.com |
|
|
|
11 |
| student2 | Student | 2 | student2@example.com |
|
|
|
12 |
| student3 | Student | 3 | student3@example.com |
|
|
|
13 |
And the following "courses" exist:
|
|
|
14 |
| fullname | shortname |
|
|
|
15 |
| Course 1 | C1 |
|
|
|
16 |
And the following "course enrolments" exist:
|
|
|
17 |
| user | course | role |
|
|
|
18 |
| teacher1 | C1 | editingteacher |
|
|
|
19 |
| student1 | C1 | student |
|
|
|
20 |
| student2 | C1 | student |
|
|
|
21 |
| student3 | C1 | student |
|
|
|
22 |
And the following "activities" exist:
|
|
|
23 |
| activity | name | course | submissiontypetext |
|
|
|
24 |
| workshop | Workshop 1 | C1 | 2 |
|
|
|
25 |
|
|
|
26 |
Scenario: Reviewers can navigate between submissions using save and show next button
|
|
|
27 |
Given I am on the "Course 1" course page logged in as teacher1
|
|
|
28 |
And I edit assessment form in workshop "Workshop 1" as:
|
|
|
29 |
| id_description__idx_0_editor | Aspect 1 |
|
|
|
30 |
| id_description__idx_1_editor | Aspect 2 |
|
|
|
31 |
And I change phase in workshop "Workshop 1" to "Submission phase"
|
|
|
32 |
# Add a submission for students to be assessed.
|
|
|
33 |
And I am on the "Workshop 1" "workshop activity" page logged in as student2
|
|
|
34 |
And I add a submission in workshop "Workshop 1" as:
|
|
|
35 |
| Title | Student 2 submission |
|
|
|
36 |
| Submission content | Submission content |
|
|
|
37 |
And I am on the "Workshop 1" "workshop activity" page logged in as student3
|
|
|
38 |
And I add a submission in workshop "Workshop 1" as:
|
|
|
39 |
| Title | Student 3 submission |
|
|
|
40 |
| Submission content | Submission content |
|
|
|
41 |
# Allocate student1 as reviewer for other student submissions.
|
|
|
42 |
And I am on the "Workshop 1" "workshop activity" page logged in as teacher1
|
|
|
43 |
And I allocate submissions in workshop "Workshop 1" as:
|
|
|
44 |
| Participant | Reviewer |
|
|
|
45 |
| Student 2 | Student 1 |
|
|
|
46 |
| Student 3 | Student 1 |
|
|
|
47 |
And I change phase in workshop "Workshop 1" to "Assessment phase"
|
|
|
48 |
When I am on the "Workshop 1" "workshop activity" page logged in as student1
|
|
|
49 |
And I press "Assess"
|
|
|
50 |
# Confirm student1 can see "Save and show next" button while assessing the first submission.
|
|
|
51 |
Then "Save and show next" "button" should exist
|
|
|
52 |
And I set the following fields to these values:
|
|
|
53 |
| Grade for Aspect 1 | 6 |
|
|
|
54 |
| Grade for Aspect 2 | 7 |
|
|
|
55 |
| Feedback for the author | Keep it up |
|
|
|
56 |
And I press "Save and show next"
|
|
|
57 |
# Confirm student1 can't see "Save and show next" button while assessing the last submission.
|
|
|
58 |
And "Save and show next" "button" should not exist
|
|
|
59 |
And "Save and close" "button" should exist
|
|
|
60 |
And I set the following fields to these values:
|
|
|
61 |
| Grade for Aspect 1 | 7 |
|
|
|
62 |
| Grade for Aspect 2 | 6 |
|
|
|
63 |
| Feedback for the author | Keep it up |
|
|
|
64 |
And I press "Save and close"
|
|
|
65 |
# Confirm that the corresponding buttons are not displayed after pressing "Save and close".
|
|
|
66 |
And "Save and show next" "button" should not exist
|
|
|
67 |
And "Save and close" "button" should not exist
|