Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 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 the following "activities" exist:
23
      | activity | course | name                    | firstpagetitle      | wikimode      |
24
      | wiki     | C1     | Collaborative wiki name | Collaborative index | collaborative |
25
      | wiki     | C1     | Individual wiki name    | Individual index    | individual    |
26
    And I am on the "Collaborative wiki name" "wiki activity" page logged in as teacher1
27
    And I press "Create page"
28
    And I set the following fields to these values:
29
      | HTML format | Collaborative teacher1 edition |
30
    And I press "Save"
31
    And I am on the "Individual wiki name" "wiki activity" page
32
    And I press "Create page"
33
    And I set the following fields to these values:
34
      | HTML format | Individual teacher1 edition |
35
    And I press "Save"
36
    And I am on the "Collaborative wiki name" "wiki activity" page logged in as student1
37
    Then I should see "Collaborative teacher1 edition"
38
    And I select "Edit" from the "jump" singleselect
39
    And I set the following fields to these values:
40
      | HTML format | Collaborative student1 edition |
41
    And I press "Save"
42
    And I should not see "Collaborative teacher1 edition"
43
    And I should see "Collaborative student1 edition"
44
    And I am on the "Individual wiki name" "wiki activity" page
45
    And I should not see "Individual teacher1 edition"
46
    And I press "Create page"
47
    And I set the following fields to these values:
48
      | HTML format | Individual student1 edition |
49
    And I press "Save"
50
    And I am on the "Individual wiki name" "wiki activity" page logged in as student2
51
    And I should not see "Individual teacher1 edition"
52
    And I should not see "Individual student1 edition"
53
    And I press "Create page"
54
    And I set the following fields to these values:
55
      | HTML format | Individual student2 edition |
56
    And I press "Save"
57
    And I am on the "Collaborative wiki name" "wiki activity" page logged in as teacher1
58
    And I should see "Collaborative student1 edition"
59
    And I am on the "Individual wiki name" "wiki activity" page
60
    And I should see "Individual teacher1 edition"
61
    And I should not see "Individual student1 edition"
62
    And I set the field "uid" to "Student 1"
63
    And I should see "Individual student1 edition"
64
    And I should not see "Individual teacher1 edition"
65
    And I set the field "uid" to "Student 2"
66
    And I should see "Individual student2 edition"
67
    And I should not see "Individual teacher1 edition"