[ Index ] |
PHP Cross Reference of Unnamed Project |
[Summary view] [Print] [Text view]
1 @mod @mod_wiki 2 Feature: A teacher can set a wiki to be collaborative or individual 3 In order to allow both collaborative wikis and individual journals with history register 4 As a teacher 5 I need to select whether the wiki is collaborative or individual 6 7 @javascript 8 Scenario: Collaborative and individual wikis 9 Given the following "users" exist: 10 | username | firstname | lastname | email | 11 | teacher1 | Teacher | 1 | teacher1@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 | Course 1 | C1 | 0 | 17 And the following "course enrolments" exist: 18 | user | course | role | 19 | teacher1 | C1 | editingteacher | 20 | student1 | C1 | student | 21 | student2 | C1 | student | 22 And I log in as "teacher1" 23 And I follow "Course 1" 24 And I turn editing mode on 25 And I add a "Wiki" to section "1" and I fill the form with: 26 | Wiki name | Collaborative wiki name | 27 | Description | Collaborative wiki description | 28 | First page name | Collaborative index | 29 | Wiki mode | Collaborative wiki | 30 And I follow "Collaborative wiki name" 31 And I press "Create page" 32 And I set the following fields to these values: 33 | HTML format | Collaborative teacher1 edition | 34 And I press "Save" 35 And I follow "Course 1" 36 And I add a "Wiki" to section "1" and I fill the form with: 37 | Wiki name | Individual wiki name | 38 | Description | Individual wiki description | 39 | First page name | Individual index | 40 | Wiki mode | Individual wiki | 41 And I follow "Individual wiki name" 42 And I press "Create page" 43 And I set the following fields to these values: 44 | HTML format | Individual teacher1 edition | 45 And I press "Save" 46 And I log out 47 And I log in as "student1" 48 And I follow "Course 1" 49 When I follow "Collaborative wiki name" 50 Then I should see "Collaborative teacher1 edition" 51 And I follow "Edit" 52 And I set the following fields to these values: 53 | HTML format | Collaborative student1 edition | 54 And I press "Save" 55 And I should not see "Collaborative teacher1 edition" 56 And I should see "Collaborative student1 edition" 57 And I follow "Course 1" 58 And I follow "Individual wiki name" 59 And I should not see "Individual teacher1 edition" 60 And I press "Create page" 61 And I set the following fields to these values: 62 | HTML format | Individual student1 edition | 63 And I press "Save" 64 And I log out 65 And I log in as "student2" 66 And I follow "Course 1" 67 And I follow "Individual wiki name" 68 And I should not see "Individual teacher1 edition" 69 And I should not see "Individual student1 edition" 70 And I press "Create page" 71 And I set the following fields to these values: 72 | HTML format | Individual student2 edition | 73 And I press "Save" 74 And I log out 75 And I log in as "teacher1" 76 And I follow "Course 1" 77 And I follow "Collaborative wiki name" 78 And I should see "Collaborative student1 edition" 79 And I follow "Course 1" 80 And I follow "Individual wiki name" 81 And I should see "Individual teacher1 edition" 82 And I should not see "Individual student1 edition" 83 And I set the field "uid" to "Student 1" 84 And I should see "Individual student1 edition" 85 And I should not see "Individual teacher1 edition" 86 And I set the field "uid" to "Student 2" 87 And I should see "Individual student2 edition" 88 And I should not see "Individual teacher1 edition" 89 90
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 |