Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@mod @mod_chat
2
Feature: Chat with no calendar capabilites
3
  In order to allow work effectively
4
  As a teacher
5
  I need to be able to create chats 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 enable "chat" "mod" plugin
18
    And the following "activity" exists:
19
      | activity                      | chat                  |
20
      | course                        | C1                    |
21
      | idnumber                      | 0001                  |
22
      | name                          | Test chat name        |
23
      | intro                         | Test chat description |
24
      | section                       | 1                     |
25
    And I log in as "admin"
26
    And I am on the "Course 1" "permissions" page
27
    And I override the system permissions of "Teacher" role with:
28
      | capability | permission |
29
      | moodle/calendar:manageentries | Prohibit |
30
    And I am on "Course 1" course homepage
31
    And I follow "Test chat name"
32
    And I navigate to "Settings" in current page administration
33
    And I set the following fields to these values:
34
      | Repeat/publish session times | No repeats - publish the specified time only |
35
      | id_chattime_day | 1 |
36
      | id_chattime_month | 1 |
37
      | id_chattime_year | 2017 |
38
    And I press "Save and return to course"
39
    And I log out
40
 
41
  Scenario: Editing a chat
42
    When I log in as "teacher1"
43
    And I am on "Course 1" course homepage with editing mode on
44
    And I follow "Test chat name"
45
    And I navigate to "Settings" in current page administration
46
    And I set the following fields to these values:
47
      | id_chattime_year | 2018 |
48
    And I press "Save and return to course"
49
    Then I should see "Test chat name"