Proyectos de Subversion Moodle

Rev

Rev 11 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 11 Rev 1441
Línea 76... Línea 76...
76
    And I set the field "Description" to "This is my draft"
76
    And I set the field "Description" to "This is my draft"
77
    And I click on "Save" "button"
77
    And I click on "Save" "button"
78
    And I click on "New event" "button"
78
    And I click on "New event" "button"
79
    When I click on "Show more..." "link" in the "New event" "dialogue"
79
    When I click on "Show more..." "link" in the "New event" "dialogue"
80
    Then the field "Description" matches value ""
80
    Then the field "Description" matches value ""
-
 
81
 
-
 
82
  @javascript
-
 
83
  Scenario: Permissions can be configured to control access to autosave
-
 
84
    Given the following "roles" exist:
-
 
85
      | name           | shortname | description         | archetype      |
-
 
86
      | Custom teacher | custom1   | Limited permissions | editingteacher |
-
 
87
    And the following "users" exist:
-
 
88
      | username | firstname | lastname | email                |
-
 
89
      | teacher3 | Teacher   | 3        | teacher3@example.com |
-
 
90
    And the following "course enrolments" exist:
-
 
91
      | user     | course | role    |
-
 
92
      | teacher3 | C1     | custom1 |
-
 
93
    And the following "activity" exists:
-
 
94
      | activity | assign          |
-
 
95
      | course   | C1              |
-
 
96
      | name     | Test assignment |
-
 
97
    And the following "permission overrides" exist:
-
 
98
      | capability        | permission | role    | contextlevel | reference |
-
 
99
      | tiny/autosave:use | Prohibit   | custom1 | Course       | C1        |
-
 
100
    # Check plugin access as a role with prohibited permissions.
-
 
101
    And I log in as "teacher3"
-
 
102
    And I am on the "Test assignment" Activity page
-
 
103
    And I navigate to "Settings" in current page administration
-
 
104
    And I set the field "Activity instructions" to "This is my draft"
-
 
105
    And I log out
-
 
106
    And I log in as "teacher3"
-
 
107
    And I am on the "Test assignment" Activity page
-
 
108
    When I navigate to "Settings" in current page administration
-
 
109
    Then the field "Activity instructions" matches value ""
-
 
110
    # Check plugin access as a role with allowed permissions.
-
 
111
    And I log in as "teacher1"
-
 
112
    And I am on the "Test assignment" Activity page
-
 
113
    And I navigate to "Settings" in current page administration
-
 
114
    And I set the field "Activity instructions" to "This is my draft"
-
 
115
    And I log out
-
 
116
    And I log in as "teacher1"
-
 
117
    And I am on the "Test assignment" Activity page
-
 
118
    And I navigate to "Settings" in current page administration
-
 
119
    And the field "Activity instructions" matches value "This is my draft"