Proyectos de Subversion Moodle

Rev

Ir a la última revisión | | Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@communication @communication_matrix @javascript
2
Feature: Communication matrix form field
3
  In order to create a new communication room in matrix
4
  As a teacher
5
  I can update the room the information from course
6
 
7
  Background: Make sure the mock server is initialized and a course is created for teacher
8
    Given the following "users" exist:
9
      | username | firstname | lastname | email |
10
      | teacher1 | Teacher | 1 | teacher1@example.com |
11
    And the following "courses" exist:
12
      | fullname    | shortname   | category |
13
      | Test course | Test course | 0        |
14
    And the following "course enrolments" exist:
15
      | user     | course      | role    |
16
      | teacher1 | Test course | editingteacher |
17
 
18
  Scenario: I can add room name for matrix room
19
    Given a Matrix mock server is configured
20
    And I log in as "teacher1"
21
    And I am on "Test course" course homepage
22
    When I navigate to "Communication" in current page administration
23
    And I set the field "id_selectedcommunication" to "Matrix"
24
    And I wait to be redirected
25
    And I should see "Room name"
26
    And I set the field "id_communicationroomname" to "Sampleroomname"
27
    And I press "Save changes"
28
    And I navigate to "Communication" in current page administration
29
    Then the field "id_communicationroomname" matches value "Sampleroomname"
30
 
31
  Scenario: I can add room topic for matrix room
32
    Given a Matrix mock server is configured
33
    And I log in as "teacher1"
34
    And I am on "Test course" course homepage
35
    When I navigate to "Communication" in current page administration
36
    And I set the field "id_selectedcommunication" to "Matrix"
37
    And I wait to be redirected
38
    And I should see "Room name"
39
    And I should see "Room topic"
40
    And I set the field "id_communicationroomname" to "Sampleroomname"
41
    And I set the field "id_matrixroomtopic" to "Sampleroomtopic"
42
    And I press "Save changes"
43
    And I navigate to "Communication" in current page administration
44
    Then the field "id_communicationroomname" matches value "Sampleroomname"
45
    And I press "Cancel"
46
    And I run all adhoc tasks
47
    And I navigate to "Communication" in current page administration
48
    And the field "id_matrixroomtopic" matches value "Sampleroomtopic"