Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@mod @mod_feedback
2
Feature: Feedback with no calendar capabilites
3
  In order to allow work effectively
4
  As a teacher
5
  I need to be able to create feedbacks 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 log in as "admin"
18
    And I am on the "Course 1" "permissions" page
19
    And I override the system permissions of "Teacher" role with:
20
      | capability | permission |
21
      | moodle/calendar:manageentries | Prohibit |
22
    And I log out
23
 
24
  Scenario: Editing a feedback
25
    Given the following "activities" exist:
26
      | activity   | name                   | intro                         | course | idnumber    |
27
      | feedback   | Test feedback name     | Test feedback description     | C1     | feedback1   |
28
    And I log in as "admin"
29
    And I am on "Course 1" course homepage
30
    And I follow "Test feedback name"
31
    And I navigate to "Settings" in current page administration
32
    And I set the following fields to these values:
33
      | id_timeopen_enabled | 1 |
34
      | id_timeopen_day | 1 |
35
      | id_timeopen_month | 1 |
36
      | id_timeopen_year | 2017 |
37
      | id_timeclose_enabled | 1 |
38
      | id_timeclose_day | 1 |
39
      | id_timeclose_month | 2 |
40
      | id_timeclose_year | 2017 |
41
    And I press "Save and return to course"
42
    And I log out
43
    When I log in as "teacher1"
44
    And I am on "Course 1" course homepage with editing mode on
45
    And I follow "Test feedback name"
46
    And I navigate to "Settings" in current page administration
47
    And I set the following fields to these values:
48
      | id_timeopen_year | 2018 |
49
      | id_timeclose_year | 2018 |
50
    And I press "Save and return to course"
51
    Then I should see "Test feedback name"