Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@mod @mod_lesson
2
Feature: Lesson with no calendar capabilites
3
  In order to allow work effectively
4
  As a teacher
5
  I need to be able to create lessons 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
    Given the following "activity" exists:
18
      | activity      | lesson                  |
19
      | course        | C1                      |
20
      | idnumber      | 0001                    |
21
      | name          | Test lesson name        |
22
    And I log in as "admin"
23
    And I am on the "Course 1" "permissions" page
24
    And I override the system permissions of "Teacher" role with:
25
      | capability | permission |
26
      | moodle/calendar:manageentries | Prohibit |
27
 
28
  Scenario: Editing a lesson
29
    Given I am on the "Test lesson name" "lesson activity editing" page logged in as admin
30
    And I set the following fields to these values:
31
      | id_available_enabled | 1 |
32
      | id_available_day | 1 |
33
      | id_available_month | 1 |
34
      | id_available_year | 2017 |
35
      | id_deadline_enabled | 1 |
36
      | id_deadline_day | 1 |
37
      | id_deadline_month | 2 |
38
      | id_deadline_year | 2017 |
39
    And I press "Save and return to course"
40
    When I am on the "Test lesson name" "lesson activity editing" page logged in as teacher1
41
    And I set the following fields to these values:
42
      | id_available_year | 2018 |
43
      | id_deadline_year | 2018 |
44
    And I press "Save and return to course"
45
    Then I should see "Test lesson name"