| Server IP : 104.21.80.248 / Your IP : 172.71.28.155 Web Server : Apache/2.4.25 (Win32) OpenSSL/1.0.2j PHP/5.6.30 System : Windows NT WIN-ECQAAA40806 6.2 build 9200 (Windows Server 2012 Standard Edition) i586 User : SYSTEM ( 0) PHP Version : 5.6.30 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : E:/Inetpub/www/myschool/triamudom/tuprblearn/mod/wiki/tests/behat/ |
Upload File : |
@mod @mod_wiki
Feature: A teacher can set a wiki to be collaborative or individual
In order to allow both collaborative wikis and individual journals with history register
As a teacher
I need to select whether the wiki is collaborative or individual
@javascript
Scenario: Collaborative and individual wikis
Given the following "users" exist:
| username | firstname | lastname | email |
| teacher1 | Teacher | 1 | [email protected] |
| student1 | Student | 1 | [email protected] |
| student2 | Student | 2 | [email protected] |
And the following "courses" exist:
| fullname | shortname | category |
| Course 1 | C1 | 0 |
And the following "course enrolments" exist:
| user | course | role |
| teacher1 | C1 | editingteacher |
| student1 | C1 | student |
| student2 | C1 | student |
And I log in as "teacher1"
And I am on "Course 1" course homepage with editing mode on
And I add a "Wiki" to section "1" and I fill the form with:
| Wiki name | Collaborative wiki name |
| Description | Collaborative wiki description |
| First page name | Collaborative index |
| Wiki mode | Collaborative wiki |
And I follow "Collaborative wiki name"
And I press "Create page"
And I set the following fields to these values:
| HTML format | Collaborative teacher1 edition |
And I press "Save"
And I am on "Course 1" course homepage
And I add a "Wiki" to section "1" and I fill the form with:
| Wiki name | Individual wiki name |
| Description | Individual wiki description |
| First page name | Individual index |
| Wiki mode | Individual wiki |
And I follow "Individual wiki name"
And I press "Create page"
And I set the following fields to these values:
| HTML format | Individual teacher1 edition |
And I press "Save"
And I log out
And I log in as "student1"
And I am on "Course 1" course homepage
When I follow "Collaborative wiki name"
Then I should see "Collaborative teacher1 edition"
And I follow "Edit"
And I set the following fields to these values:
| HTML format | Collaborative student1 edition |
And I press "Save"
And I should not see "Collaborative teacher1 edition"
And I should see "Collaborative student1 edition"
And I am on "Course 1" course homepage
And I follow "Individual wiki name"
And I should not see "Individual teacher1 edition"
And I press "Create page"
And I set the following fields to these values:
| HTML format | Individual student1 edition |
And I press "Save"
And I log out
And I log in as "student2"
And I am on "Course 1" course homepage
And I follow "Individual wiki name"
And I should not see "Individual teacher1 edition"
And I should not see "Individual student1 edition"
And I press "Create page"
And I set the following fields to these values:
| HTML format | Individual student2 edition |
And I press "Save"
And I log out
And I log in as "teacher1"
And I am on "Course 1" course homepage
And I follow "Collaborative wiki name"
And I should see "Collaborative student1 edition"
And I am on "Course 1" course homepage
And I follow "Individual wiki name"
And I should see "Individual teacher1 edition"
And I should not see "Individual student1 edition"
And I set the field "uid" to "Student 1"
And I should see "Individual student1 edition"
And I should not see "Individual teacher1 edition"
And I set the field "uid" to "Student 2"
And I should see "Individual student2 edition"
And I should not see "Individual teacher1 edition"