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 calendar entries
3
  In order to notify students of upcoming chat sessons
4
  As a teacher
5
  I need to create a chat activity and publish the event times
6
 
7
  Background:
8
    Given the following "users" exist:
9
      | username | firstname | lastname | email |
10
      | teacher1 | Tina | Teacher1 | teacher1@example.com |
11
      | student1 | Sam | Student1 | student1@example.com |
12
    And the following "courses" exist:
13
      | fullname | shortname | category |
14
      | Course 1 | C1 | 0 |
15
    And the following "course enrolments" exist:
16
      | user | course | role |
17
      | teacher1 | C1 | editingteacher |
18
      | student1 | C1 | student |
19
    And I enable "chat" "mod" plugin
20
 
21
  Scenario Outline: Create a chat activity with repeated chat times set
22
    # Create an activity with repeated chat times
23
    Given the following "activities" exist:
24
      | activity | course | name   | schedule      |
25
      | chat     | C1     | Chat 1 | <scheduleset> |
26
    And I log in as "teacher1"
27
    # Confirm Chat activity visibility based on schedule
28
    When I am viewing calendar in "upcoming" view
29
    Then I <chatvisibility> see "Chat 1"
30
 
31
    Examples:
32
      | scheduleset | chatvisibility |
33
      | 0           | should not     |
34
      | 1           | should         |
35
      | 2           | should         |
36
      | 3           | should         |