1 |
efrain |
1 |
@mod @mod_assign
|
|
|
2 |
Feature: Assignment with no calendar capabilites
|
|
|
3 |
In order to allow work effectively
|
|
|
4 |
As a teacher
|
|
|
5 |
I need to be able to create assignments even when I cannot edit calendar events
|
|
|
6 |
|
|
|
7 |
Background:
|
|
|
8 |
Given the following "courses" exist:
|
|
|
9 |
| fullname | shortname | category | groupmode |
|
|
|
10 |
| Course 1 | C1 | 0 | 1 |
|
|
|
11 |
And the following "users" exist:
|
|
|
12 |
| username | firstname | lastname | email |
|
|
|
13 |
| teacher1 | Teacher | 1 | teacher1@example.com |
|
|
|
14 |
And the following "course enrolments" exist:
|
|
|
15 |
| user | course | role |
|
|
|
16 |
| teacher1 | C1 | editingteacher |
|
|
|
17 |
And I am on the "C1" "permissions" page logged in as admin
|
|
|
18 |
And I override the system permissions of "Teacher" role with:
|
|
|
19 |
| capability | permission |
|
|
|
20 |
| moodle/calendar:manageentries | Prohibit |
|
|
|
21 |
|
|
|
22 |
Scenario: Editing an assignment
|
|
|
23 |
Given the following "activities" exist:
|
|
|
24 |
| activity | name | intro | course | section |
|
|
|
25 |
| assign | Test assignment name | Test assignment description | C1 | 1 |
|
|
|
26 |
And I am on the "Test assignment name" Activity page
|
|
|
27 |
And I navigate to "Settings" in current page administration
|
|
|
28 |
And I set the following fields to these values:
|
|
|
29 |
| Allow submissions from | ##1 January 2017## |
|
|
|
30 |
| Due date | ##1 February 2017## |
|
|
|
31 |
| Cut-off date | ##2 February 2017## |
|
|
|
32 |
| Remind me to grade by | ##1 March 2017## |
|
|
|
33 |
And I press "Save and return to course"
|
|
|
34 |
And I log out
|
|
|
35 |
|
|
|
36 |
When I am on the "Test assignment name" Activity page logged in as teacher1
|
|
|
37 |
And I navigate to "Settings" in current page administration
|
|
|
38 |
And I set the following fields to these values:
|
|
|
39 |
| Allow submissions from | ##1 January 2018## |
|
|
|
40 |
| Due date | ##1 February 2018## |
|
|
|
41 |
| Cut-off date | ##2 February 2018## |
|
|
|
42 |
| Remind me to grade by | ##1 March 2018## |
|
|
|
43 |
And I press "Save and return to course"
|
|
|
44 |
Then I should see "Test assignment name"
|