Línea 36... |
Línea 36... |
36 |
Given a Matrix mock server is configured
|
36 |
Given a Matrix mock server is configured
|
37 |
And I am on the "Test course" "Course" page logged in as "teacher1"
|
37 |
And I am on the "Test course" "Course" page logged in as "teacher1"
|
38 |
When I navigate to "Communication" in current page administration
|
38 |
When I navigate to "Communication" in current page administration
|
39 |
And I set the following fields to these values:
|
39 |
And I set the following fields to these values:
|
40 |
| selectedcommunication | communication_matrix |
|
40 |
| selectedcommunication | communication_matrix |
|
- |
|
41 |
And I wait to be redirected
|
41 |
Then I should see "Room name"
|
42 |
Then I should see "Room name"
|
42 |
And I should see "Room topic"
|
43 |
And I should see "Room topic"
|
- |
|
44 |
|
- |
|
45 |
@javascript
|
- |
|
46 |
Scenario: Changing the communication provider in the form fetches the correct data
|
- |
|
47 |
Given a Matrix mock server is configured
|
- |
|
48 |
And I am on the "Test course" "Course" page logged in as "teacher1"
|
- |
|
49 |
When I navigate to "Communication" in current page administration
|
- |
|
50 |
And I set the following fields to these values:
|
- |
|
51 |
| selectedcommunication | communication_matrix |
|
- |
|
52 |
And I wait to be redirected
|
- |
|
53 |
And I should see "Room name"
|
- |
|
54 |
And I should see "Room topic"
|
- |
|
55 |
And I set the following fields to these values:
|
- |
|
56 |
| communication_matrixroomname | Matrix room |
|
- |
|
57 |
| matrixroomtopic | Matrix topic |
|
- |
|
58 |
And I click on "Save changes" "button"
|
- |
|
59 |
And I navigate to "Communication" in current page administration
|
- |
|
60 |
Then the field "Room name" matches value "Matrix room"
|
- |
|
61 |
And the field "Room topic" matches value "Matrix topic"
|
- |
|
62 |
And I set the following fields to these values:
|
- |
|
63 |
| selectedcommunication | communication_customlink |
|
- |
|
64 |
And I wait to be redirected
|
- |
|
65 |
And I should see "Room name"
|
- |
|
66 |
And I should not see "Room topic"
|
- |
|
67 |
And I should see "Custom link URL"
|
- |
|
68 |
And I set the following fields to these values:
|
- |
|
69 |
| communication_customlinkroomname | Custom link room |
|
- |
|
70 |
| customlinkurl | https://moodle.org |
|
- |
|
71 |
And I click on "Save changes" "button"
|
- |
|
72 |
And I navigate to "Communication" in current page administration
|
- |
|
73 |
And the field "Room name" matches value "Custom link room"
|
- |
|
74 |
And the field "Custom link URL" matches value "https://moodle.org"
|
- |
|
75 |
And I set the following fields to these values:
|
- |
|
76 |
| selectedcommunication | communication_matrix |
|
- |
|
77 |
And I wait to be redirected
|
- |
|
78 |
And I should see "Room name"
|
- |
|
79 |
And I should see "Room topic"
|
- |
|
80 |
And the field "Room name" matches value "Matrix room"
|
- |
|
81 |
And the field "Room topic" matches value "Matrix topic"
|
- |
|
82 |
And I should not see "Custom link URL"
|
- |
|
83 |
And I set the following fields to these values:
|
- |
|
84 |
| selectedcommunication | communication_customlink |
|
- |
|
85 |
And I wait to be redirected
|
- |
|
86 |
And I should see "Room name"
|
- |
|
87 |
And I should see "Custom link URL"
|
- |
|
88 |
And the field "Room name" matches value "Custom link room"
|
- |
|
89 |
And the field "Custom link URL" matches value "https://moodle.org"
|
- |
|
90 |
And I should not see "Room topic"
|
- |
|
91 |
And I set the following fields to these values:
|
- |
|
92 |
| selectedcommunication | communication_matrix |
|
- |
|
93 |
And I wait to be redirected
|
- |
|
94 |
And I click on "Save changes" "button"
|
- |
|
95 |
And I am on "Test course" course homepage with editing mode on
|
- |
|
96 |
And I navigate to "Settings" in current page administration
|
- |
|
97 |
And I set the following fields to these values:
|
- |
|
98 |
| Group mode | Separate groups |
|
- |
|
99 |
And I press "Save and display"
|
- |
|
100 |
And I navigate to "Communication" in current page administration
|
- |
|
101 |
And the field "Room name" matches value "Matrix room"
|
- |
|
102 |
And the field "Room topic" matches value "Matrix topic"
|
- |
|
103 |
And I press "Cancel"
|
- |
|
104 |
And I navigate to "Settings" in current page administration
|
- |
|
105 |
And I set the following fields to these values:
|
- |
|
106 |
| Group mode | Visible groups |
|
- |
|
107 |
And I navigate to "Communication" in current page administration
|
- |
|
108 |
And the field "Room name" matches value "Matrix room"
|
- |
|
109 |
And the field "Room topic" matches value "Matrix topic"
|