[ Index ] |
PHP Cross Reference of moodle-2.8 |
[Summary view] [Print] [Text view]
1 @mod @mod_forum 2 Feature: As a teacher I need to see an accurate list of subscribed users 3 In order to see who is subscribed to a forum 4 As a teacher 5 I need to view the list of subscribed users 6 7 Background: 8 Given the following "users" exist: 9 | username | firstname | lastname | email | 10 | teacher | Teacher | Teacher | [email protected] | 11 | student1 | Student | 1 | [email protected] | 12 | student2 | Student | 2 | [email protected] | 13 | student3 | Student | 3 | [email protected] | 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 | teacher | C1 | editingteacher | 20 | student1 | C1 | student | 21 | student2 | C1 | student | 22 | student3 | C1 | student | 23 And the following "groups" exist: 24 | name | course | idnumber | 25 | Group 1 | C1 | G1 | 26 | Group 2 | C1 | G2 | 27 And the following "group members" exist: 28 | user | group | 29 | student1 | G1 | 30 | student2 | G2 | 31 And the following "groupings" exist: 32 | name | course | idnumber | 33 | Grouping 1 | C1 | GG1 | 34 And the following "grouping groups" exist: 35 | grouping | group | 36 | GG1 | G1 | 37 And I log in as "admin" 38 And I set the following administration settings values: 39 | Enable conditional access | 1 | 40 And I log out 41 And I log in as "teacher" 42 And I follow "Course 1" 43 And I turn editing mode on 44 45 @javascript 46 Scenario: A forced forum lists all subscribers 47 When I add a "Forum" to section "1" and I fill the form with: 48 | Forum name | Forced Forum 1 | 49 | Forum type | Standard forum for general use | 50 | Description | Test forum description | 51 | Subscription mode | Forced subscription | 52 And I follow "Forced Forum 1" 53 And I follow "Show/edit current subscribers" 54 Then I should see "Student 1" 55 And I should see "Teacher Teacher" 56 And I should see "Student 2" 57 And I should see "Student 3" 58 And I click on "Edit settings" "link" in the "Administration" "block" 59 And I expand all fieldsets 60 And I click on "Add restriction..." "button" 61 And I click on "Grouping" "button" in the "Add restriction..." "dialogue" 62 And I set the field with xpath "//select[@name='id']" to "Grouping 1" 63 And I press "Save and display" 64 And I follow "Show/edit current subscribers" 65 And I should see "Student 1" 66 And I should see "Teacher Teacher" 67 And I should not see "Student 2" 68 And I should not see "Student 3" 69 70 @javascript 71 Scenario: An automatic forum lists all subscribers 72 When I add a "Forum" to section "1" and I fill the form with: 73 | Forum name | Forced Forum 1 | 74 | Forum type | Standard forum for general use | 75 | Description | Test forum description | 76 | Subscription mode | Auto subscription | 77 And I follow "Forced Forum 1" 78 And I follow "Show/edit current subscribers" 79 Then I should see "Student 1" 80 And I should see "Teacher Teacher" 81 And I should see "Student 2" 82 And I should see "Student 3" 83 And I click on "Edit settings" "link" in the "Administration" "block" 84 And I expand all fieldsets 85 And I click on "Add restriction..." "button" 86 And I click on "Grouping" "button" in the "Add restriction..." "dialogue" 87 And I set the field with xpath "//select[@name='id']" to "Grouping 1" 88 And I press "Save and display" 89 And I follow "Show/edit current subscribers" 90 And I should see "Student 1" 91 And I should see "Teacher Teacher" 92 And I should not see "Student 2" 93 And I should not see "Student 3"
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Fri Nov 28 20:29:05 2014 | Cross-referenced by PHPXref 0.7.1 |