1 |
efrain |
1 |
@mod @mod_forum
|
|
|
2 |
Feature: Forum posts can be replied to in private
|
|
|
3 |
In order to post feedback to my students
|
|
|
4 |
As a Teacher
|
|
|
5 |
I need to be able to reply privately to students
|
|
|
6 |
|
|
|
7 |
Background:
|
|
|
8 |
Given the following "users" exist:
|
|
|
9 |
| username | firstname | lastname | email |
|
|
|
10 |
| teacher1 | Teacher | 1 | teacher1@example.com |
|
|
|
11 |
| teacher2 | Teacher | 2 | teacher2@example.com |
|
|
|
12 |
| student1 | Student | 1 | student1@example.com |
|
|
|
13 |
| student2 | Student | 2 | student2@example.com |
|
|
|
14 |
And the following "courses" exist:
|
|
|
15 |
| fullname | shortname | category |
|
|
|
16 |
| Science 101 | C1 | 0 |
|
|
|
17 |
And the following "activities" exist:
|
|
|
18 |
| activity | name | course | idnumber |
|
|
|
19 |
| forum | Study discussions | C1 | forum |
|
|
|
20 |
And the following "course enrolments" exist:
|
|
|
21 |
| user | course | role |
|
|
|
22 |
| teacher1 | C1 | editingteacher |
|
|
|
23 |
| teacher2 | C1 | editingteacher |
|
|
|
24 |
| student1 | C1 | student |
|
|
|
25 |
| student2 | C1 | student |
|
|
|
26 |
And the following "mod_forum > discussions" exist:
|
|
|
27 |
| user | forum | name | message |
|
|
|
28 |
| student1 | forum | Answers to the homework | Here are the answers to last night's homework. |
|
|
|
29 |
And the following forum replies exist in course "Science 101":
|
|
|
30 |
| user | forum | discussion | message | privatereplyto |
|
|
|
31 |
| teacher1 | Study discussions | Answers to the homework |How about you and I have a meeting after class about plagiarism?| student1 |
|
|
|
32 |
|
|
|
33 |
Scenario: As a teacher I can see my own response
|
|
|
34 |
Given I am on the "Study discussions" "forum activity" page logged in as teacher1
|
|
|
35 |
When I follow "Answers to the homework"
|
|
|
36 |
Then I should see "How about you and I have a meeting after class about plagiarism?"
|
|
|
37 |
|
|
|
38 |
Scenario: As a fellow teacher I can see the other teacher's response
|
|
|
39 |
Given I am on the "Study discussions" "forum activity" page logged in as teacher2
|
|
|
40 |
When I follow "Answers to the homework"
|
|
|
41 |
Then I should see "How about you and I have a meeting after class about plagiarism?"
|
|
|
42 |
|
|
|
43 |
Scenario: As the intended recipient I can see my own response
|
|
|
44 |
Given I am on the "Study discussions" "forum activity" page logged in as student1
|
|
|
45 |
When I follow "Answers to the homework"
|
|
|
46 |
Then I should see "How about you and I have a meeting after class about plagiarism?"
|
|
|
47 |
|
|
|
48 |
Scenario: As a non-privileged user I cannot see my own response
|
|
|
49 |
Given I am on the "Study discussions" "forum activity" page logged in as student2
|
|
|
50 |
When I follow "Answers to the homework"
|
|
|
51 |
Then I should not see "How about you and I have a meeting after class about plagiarism?"
|