Línea 1... |
Línea 1... |
1 |
@communication @communication_matrix @javascript
|
1 |
@communication @communication_matrix
|
2 |
Feature: Communication matrix form field
|
2 |
Feature: Communication matrix form field
|
3 |
In order to create a new communication room in matrix
|
3 |
In order to create a new communication room in matrix
|
4 |
As a teacher
|
4 |
As a teacher
|
5 |
I can update the room the information from course
|
5 |
I can update the room the information from course
|
Línea 13... |
Línea 13... |
13 |
| Test course | Test course | 0 |
|
13 |
| Test course | Test course | 0 |
|
14 |
And the following "course enrolments" exist:
|
14 |
And the following "course enrolments" exist:
|
15 |
| user | course | role |
|
15 |
| user | course | role |
|
16 |
| teacher1 | Test course | editingteacher |
|
16 |
| teacher1 | Test course | editingteacher |
|
Línea -... |
Línea 17... |
- |
|
17 |
|
17 |
|
18 |
@javascript
|
18 |
Scenario: I can add room name for matrix room
|
19 |
Scenario: I can add room name and topic for matrix room
|
19 |
Given a Matrix mock server is configured
|
- |
|
20 |
And I log in as "teacher1"
|
20 |
Given a Matrix mock server is configured
|
21 |
And I am on "Test course" course homepage
|
21 |
And I am on the "Test course" "Course" page logged in as "teacher1"
|
22 |
When I navigate to "Communication" in current page administration
|
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
|
23 |
And I set the following fields to these values:
|
36 |
And I set the field "id_selectedcommunication" to "Matrix"
|
24 |
| selectedcommunication | communication_matrix |
|
- |
|
25 |
And I wait to be redirected
|
- |
|
26 |
And I set the following fields to these values:
|
- |
|
27 |
| communication_matrixroomname | Sampleroomname |
|
37 |
And I wait to be redirected
|
28 |
| matrixroomtopic | Sampleroomtopic |
|
38 |
And I should see "Room name"
|
29 |
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"
|
30 |
And I should see "Room topic"
|
42 |
And I press "Save changes"
|
31 |
And I press "Save changes"
|
43 |
And I navigate to "Communication" in current page administration
|
32 |
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
|
33 |
Then the field "Room name" matches value "Sampleroomname"
|