[ Index ] |
PHP Cross Reference of Unnamed Project |
[Summary view] [Print] [Text view]
1 @mod @mod_forum 2 Feature: A teacher can set one of 3 possible options for tracking read forum posts 3 In order to ease the forum posts follow up 4 As a user 5 I need to distinct the unread posts from the read ones 6 7 Background: 8 Given the following "users" exist: 9 | username | firstname | lastname | email | trackforums | 10 | student1 | Student | 1 | student1@example.com | 1 | 11 | student2 | Student | 2 | student2@example.com | 0 | 12 And the following "courses" exist: 13 | fullname | shortname | category | 14 | Course 1 | C1 | 0 | 15 And the following "course enrolments" exist: 16 | user | course | role | 17 | student1 | C1 | student | 18 | student2 | C1 | student | 19 And I log in as "admin" 20 And I am on site homepage 21 And I follow "Course 1" 22 And I turn editing mode on 23 24 Scenario: Tracking forum posts off 25 Given I add a "Forum" to section "1" and I fill the form with: 26 | Forum name | Test forum name | 27 | Forum type | Standard forum for general use | 28 | Description | Test forum description | 29 | Read tracking | Off | 30 And I add a new discussion to "Test forum name" forum with: 31 | Subject | Test post subject | 32 | Message | Test post message | 33 And I log out 34 When I log in as "student1" 35 And I follow "Course 1" 36 Then I should not see "1 unread post" 37 And I follow "Test forum name" 38 And I should not see "Track unread posts" 39 40 Scenario: Tracking forum posts optional with user tracking on 41 Given I add a "Forum" to section "1" and I fill the form with: 42 | Forum name | Test forum name | 43 | Forum type | Standard forum for general use | 44 | Description | Test forum description | 45 | Read tracking | Optional | 46 And I add a new discussion to "Test forum name" forum with: 47 | Subject | Test post subject | 48 | Message | Test post message | 49 And I log out 50 When I log in as "student1" 51 And I follow "Course 1" 52 Then I should see "1 unread post" 53 And I follow "Test forum name" 54 And I follow "Don't track unread posts" 55 And I wait to be redirected 56 And I follow "Course 1" 57 And I should not see "1 unread post" 58 And I follow "Test forum name" 59 And I follow "Track unread posts" 60 And I wait to be redirected 61 And I click on "1" "link" in the "Admin User" "table_row" 62 And I follow "Course 1" 63 And I should not see "1 unread post" 64 65 Scenario: Tracking forum posts optional with user tracking off 66 Given I add a "Forum" to section "1" and I fill the form with: 67 | Forum name | Test forum name | 68 | Forum type | Standard forum for general use | 69 | Description | Test forum description | 70 | Read tracking | Optional | 71 And I add a new discussion to "Test forum name" forum with: 72 | Subject | Test post subject | 73 | Message | Test post message | 74 And I log out 75 When I log in as "student2" 76 And I follow "Course 1" 77 Then I should not see "1 unread post" 78 And I follow "Test forum name" 79 And I should not see "Track unread posts" 80 81 Scenario: Tracking forum posts forced with user tracking on 82 Given the following config values are set as admin: 83 | forum_allowforcedreadtracking | 1 | 84 And I am on site homepage 85 And I follow "Course 1" 86 Given I add a "Forum" to section "1" and I fill the form with: 87 | Forum name | Test forum name | 88 | Forum type | Standard forum for general use | 89 | Description | Test forum description | 90 | Read tracking | Force | 91 And I add a new discussion to "Test forum name" forum with: 92 | Subject | Test post subject | 93 | Message | Test post message | 94 And I log out 95 When I log in as "student1" 96 And I follow "Course 1" 97 Then I should see "1 unread post" 98 And I follow "1 unread post" 99 And I should not see "Don't track unread posts" 100 And I follow "Test post subject" 101 And I follow "Course 1" 102 And I should not see "1 unread post" 103 104 Scenario: Tracking forum posts forced with user tracking off 105 Given the following config values are set as admin: 106 | forum_allowforcedreadtracking | 1 | 107 And I am on site homepage 108 And I follow "Course 1" 109 Given I add a "Forum" to section "1" and I fill the form with: 110 | Forum name | Test forum name | 111 | Forum type | Standard forum for general use | 112 | Description | Test forum description | 113 | Read tracking | Force | 114 And I add a new discussion to "Test forum name" forum with: 115 | Subject | Test post subject | 116 | Message | Test post message | 117 And I log out 118 When I log in as "student2" 119 And I follow "Course 1" 120 Then I should see "1 unread post" 121 And I follow "1 unread post" 122 And I should not see "Don't track unread posts" 123 And I follow "Test post subject" 124 And I follow "Course 1" 125 And I should not see "1 unread post" 126 127 Scenario: Tracking forum posts forced (with force disabled) with user tracking on 128 Given the following config values are set as admin: 129 | forum_allowforcedreadtracking | 1 | 130 And I am on site homepage 131 And I follow "Course 1" 132 Given I add a "Forum" to section "1" and I fill the form with: 133 | Forum name | Test forum name | 134 | Forum type | Standard forum for general use | 135 | Description | Test forum description | 136 | Read tracking | Force | 137 And I add a new discussion to "Test forum name" forum with: 138 | Subject | Test post subject | 139 | Message | Test post message | 140 And the following config values are set as admin: 141 | forum_allowforcedreadtracking | 0 | 142 And I log out 143 When I log in as "student1" 144 And I follow "Course 1" 145 Then I should see "1 unread post" 146 And I follow "Test forum name" 147 And I follow "Don't track unread posts" 148 And I wait to be redirected 149 And I follow "Course 1" 150 And I should not see "1 unread post" 151 And I follow "Test forum name" 152 And I follow "Track unread posts" 153 And I wait to be redirected 154 And I click on "1" "link" in the "Admin User" "table_row" 155 And I follow "Course 1" 156 And I should not see "1 unread post" 157 158 Scenario: Tracking forum posts forced (with force disabled) with user tracking off 159 Given the following config values are set as admin: 160 | forum_allowforcedreadtracking | 1 | 161 And I am on site homepage 162 And I follow "Course 1" 163 Given I add a "Forum" to section "1" and I fill the form with: 164 | Forum name | Test forum name | 165 | Forum type | Standard forum for general use | 166 | Description | Test forum description | 167 | Read tracking | Force | 168 And I add a new discussion to "Test forum name" forum with: 169 | Subject | Test post subject | 170 | Message | Test post message | 171 And the following config values are set as admin: 172 | forum_allowforcedreadtracking | 0 | 173 And I log out 174 When I log in as "student2" 175 And I follow "Course 1" 176 Then I should not see "1 unread post" 177 And I follow "Test forum name" 178 And I should not see "Track unread posts"
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Thu Aug 11 10:00:09 2016 | Cross-referenced by PHPXref 0.7.1 |