Proyectos de Subversion Moodle

Rev

Rev 1 | | Comparar con el anterior | Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
11 efrain 1
@communication @communication_matrix
1 efrain 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
 
11 efrain 18
  @javascript
19
  Scenario: I can add room name and topic for matrix room
1 efrain 20
    Given a Matrix mock server is configured
11 efrain 21
    And I am on the "Test course" "Course" page logged in as "teacher1"
1 efrain 22
    When I navigate to "Communication" in current page administration
11 efrain 23
    And I set the following fields to these values:
24
      | selectedcommunication | communication_matrix |
1 efrain 25
    And I wait to be redirected
11 efrain 26
    And I set the following fields to these values:
27
      | communication_matrixroomname | Sampleroomname  |
28
      | matrixroomtopic              | Sampleroomtopic |
1 efrain 29
    And I should see "Room name"
30
    And I should see "Room topic"
31
    And I press "Save changes"
32
    And I navigate to "Communication" in current page administration
11 efrain 33
    Then the field "Room name" matches value "Sampleroomname"
34
    And the field "Room topic" matches value "Sampleroomtopic"