Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@core @core_message @javascript
2
Feature: Message admin settings
3
  In order to manage the messaging system
4
  As an admin
5
  I need to be able to enabled/disabled site-wide messaging system
6
 
7
  Background:
8
    Given the following "users" exist:
9
      | username | firstname | lastname | email |
10
      | user1 | User | One | one@example.com |
11
    And the following "courses" exist:
12
      | fullname | shortname | category | groupmode |
13
      | Course 1 | C1        | 0        | 1         |
14
 
15
  Scenario: enable site messaging
16
    Given the following config values are set as admin:
17
      | messaging | 1 |
18
    When I log in as "admin"
19
    Then "Toggle messaging drawer" "icon" should exist
20
    And I navigate to "Users > Accounts > Browse list of users" in site administration
21
    And I should see "User One"
22
    And I follow "User One"
23
    And "Add to contacts" "link" should exist
24
    And I am on "Course 1" course homepage
25
    And I navigate to course participants
26
    And the "With selected users..." select box should contain "Send a message"
27
 
28
  Scenario: disable site messaging
29
    Given the following config values are set as admin:
30
      | messaging | 0 |
31
    When I log in as "admin"
32
    Then "Toggle messaging drawer" "icon" should not exist
33
    And I navigate to "Users > Accounts > Browse list of users" in site administration
34
    And I should see "User One"
35
    And I follow "User One"
36
    And "Add to contacts" "link" should not exist
37
    And I am on "Course 1" course homepage
38
    And I navigate to course participants
39
    And the "With selected users..." select box should not contain "Send a message"