1 |
efrain |
1 |
@mod @mod_forum @javascript
|
|
|
2 |
Feature: View discussion while grading in a forum
|
|
|
3 |
In order to grade efficiently
|
|
|
4 |
As a teacher
|
|
|
5 |
I want to be able to see the full discussion the student was taking part in.
|
|
|
6 |
|
|
|
7 |
Background:
|
|
|
8 |
# Student 1 needs to be created first or they will not be the first user on the grading screen.
|
|
|
9 |
Given the following "users" exist:
|
|
|
10 |
| username | firstname | lastname | email |
|
|
|
11 |
| student1 | Student | 1 | student.1@example.com |
|
|
|
12 |
| student2 | Student | 2 | student.2@example.com |
|
|
|
13 |
| teacher | Teacher | Tom | teacher@example.com |
|
|
|
14 |
And the following "courses" exist:
|
|
|
15 |
| fullname | shortname | category |
|
|
|
16 |
| Course 1 | C1 | 0 |
|
|
|
17 |
And the following "course enrolments" exist:
|
|
|
18 |
| user | course | role |
|
|
|
19 |
| student1 | C1 | student |
|
|
|
20 |
| student2 | C1 | student |
|
|
|
21 |
| teacher | C1 | editingteacher |
|
|
|
22 |
And the following "activity" exists:
|
|
|
23 |
| activity | forum |
|
|
|
24 |
| name | Gradable forum |
|
|
|
25 |
| course | C1 |
|
|
|
26 |
| idnumber | forum1 |
|
|
|
27 |
| grade_forum | 100 |
|
|
|
28 |
| scale | 100 |
|
|
|
29 |
# If there is more than one pots for Student 1 the test will not be able to select the
|
|
|
30 |
# correct View discussion link, as there is no selector for thier container.
|
|
|
31 |
And the following forum discussions exist in course "Course 1":
|
|
|
32 |
| forum | user | name | message |
|
|
|
33 |
| Gradable forum | student1 | My topic | This is the thing I posted about |
|
|
|
34 |
And the following forum replies exist in course "Course 1":
|
|
|
35 |
| forum | user | discussion | message |
|
|
|
36 |
| Gradable forum | student2 | My topic | I disagree |
|
|
|
37 |
|
|
|
38 |
Scenario: Viewing a discussion
|
|
|
39 |
Given I am on the "Gradable forum" "forum activity" page logged in as teacher
|
|
|
40 |
And I press "Grade users"
|
|
|
41 |
When I press "View discussion"
|
|
|
42 |
Then I should see "I disagree" in the "My topic" "dialogue"
|
|
|
43 |
And I click on "Cancel" "button" in the "My topic" "dialogue"
|
|
|
44 |
And I should not see "I disagree"
|
|
|
45 |
|
|
|
46 |
Scenario: Viewing a discussion while grading is fullscreen
|
|
|
47 |
Given I am on the "Gradable forum" "forum activity" page logged in as teacher
|
|
|
48 |
And I press "Grade users"
|
|
|
49 |
# Uses the aria-label for the menu in in the grading interface.
|
|
|
50 |
And I press "Actions for the grader interface"
|
|
|
51 |
And I press "Toggle full screen"
|
|
|
52 |
When I press "View discussion"
|
|
|
53 |
Then I should see "I disagree" in the "My topic" "dialogue"
|
|
|
54 |
And I click on "Cancel" "button" in the "My topic" "dialogue"
|
|
|
55 |
And I should not see "I disagree"
|