1 |
efrain |
1 |
@mod @mod_bigbluebuttonbn @core_form @course
|
|
|
2 |
Feature: Manage and list recordings
|
|
|
3 |
As a user I am able to import existing recording into another bigbluebutton activity
|
|
|
4 |
|
|
|
5 |
Background: Make sure that import recording is enabled and course, activities and recording exists
|
|
|
6 |
Given a BigBlueButton mock server is configured
|
|
|
7 |
And the following config values are set as admin:
|
|
|
8 |
| bigbluebuttonbn_importrecordings_enabled | 1 |
|
|
|
9 |
| bigbluebuttonbn_importrecordings_from_deleted_enabled | 1 |
|
|
|
10 |
And I enable "bigbluebuttonbn" "mod" plugin
|
|
|
11 |
And the following "courses" exist:
|
|
|
12 |
| fullname | shortname | category |
|
|
|
13 |
| Test Course 1 | C1 | 0 |
|
|
|
14 |
| Test Course 2 | C2 | 0 |
|
|
|
15 |
And the following "users" exist:
|
|
|
16 |
| username | firstname | lastname | email |
|
|
|
17 |
| user1 | User | 1 | user1@example.com |
|
|
|
18 |
And the following "activities" exist:
|
|
|
19 |
| activity | name | intro | course | idnumber | type | recordings_imported |
|
|
|
20 |
| bigbluebuttonbn | RoomRecordings | Test Room Recording description | C1 | bigbluebuttonbn1 | 0 | 0 |
|
|
|
21 |
| bigbluebuttonbn | RoomRecordings1 | Test Recordings description 1 | C2 | bigbluebuttonbn2 | 0 | 1 |
|
|
|
22 |
| bigbluebuttonbn | RecordingOnly | Test Recordings only description 1 | C2 | bigbluebuttonbn3 | 2 | 1 |
|
|
|
23 |
And the following "mod_bigbluebuttonbn > meeting" exists:
|
|
|
24 |
| activity | RoomRecordings |
|
|
|
25 |
And the following "mod_bigbluebuttonbn > recordings" exist:
|
|
|
26 |
| bigbluebuttonbn | name | status |
|
|
|
27 |
| RoomRecordings | Recording 1 | 3 |
|
|
|
28 |
| RoomRecordings | Recording 2 | 3 |
|
|
|
29 |
|
|
|
30 |
@javascript
|
|
|
31 |
Scenario: I check we display the right information (Recording Name as name and Description)
|
|
|
32 |
When I am on the "RoomRecordings1" "bigbluebuttonbn activity" page logged in as "admin"
|
|
|
33 |
# We check column names regarding changes made in CONTRIB-7703.
|
|
|
34 |
Then I should not see "Recording" in the ".mod_bigbluebuttonbn_recordings_table thead" "css_element"
|
|
|
35 |
And I should not see "Meeting" in the ".mod_bigbluebuttonbn_recordings_table thead" "css_element"
|
|
|
36 |
And I should see "Name" in the ".mod_bigbluebuttonbn_recordings_table thead" "css_element"
|
|
|
37 |
|
|
|
38 |
@javascript
|
|
|
39 |
Scenario Outline: I check that I can import recordings into the Recording activity from other activities
|
|
|
40 |
When I am on the "<instancename>" "bigbluebuttonbn activity" page logged in as "admin"
|
|
|
41 |
And I click on "Import recording links" "button"
|
|
|
42 |
And I select "Test Course 1 (C1)" from the "sourcecourseid" singleselect
|
|
|
43 |
And I select "RoomRecordings" from the "sourcebn" singleselect
|
|
|
44 |
# add the first recording
|
|
|
45 |
And I click on "a.action-icon" "css_element" in the "Recording 1" "table_row"
|
|
|
46 |
# add the second recording
|
|
|
47 |
And I click on "a.action-icon" "css_element" in the "Recording 2" "table_row"
|
|
|
48 |
And I click on "Go back" "button"
|
|
|
49 |
Then "Recording 1" "table_row" <existence>
|
|
|
50 |
And "Recording 2" "table_row" <existence>
|
|
|
51 |
Examples:
|
|
|
52 |
| instancename | existence |
|
|
|
53 |
| RecordingOnly | should exist |
|
|
|
54 |
| RoomRecordings1 | should exist |
|
|
|
55 |
|
|
|
56 |
@javascript
|
|
|
57 |
Scenario: I check that I can import recordings into the Recording activity and then if I delete them
|
|
|
58 |
they are back into the pool to be imported again
|
|
|
59 |
When I am on the "RoomRecordings1" "bigbluebuttonbn activity" page logged in as "admin"
|
|
|
60 |
And I change window size to "large"
|
|
|
61 |
And I click on "Import recording links" "button"
|
|
|
62 |
And I select "Test Course 1 (C1)" from the "sourcecourseid" singleselect
|
|
|
63 |
And I select "RoomRecordings" from the "sourcebn" singleselect
|
|
|
64 |
# add the first recording
|
|
|
65 |
And I click on "a.action-icon" "css_element" in the "Recording 1" "table_row"
|
|
|
66 |
# add the second recording
|
|
|
67 |
And I click on "a.action-icon" "css_element" in the "Recording 2" "table_row"
|
|
|
68 |
And I wait until the page is ready
|
|
|
69 |
And I click on "Go back" "button"
|
|
|
70 |
# This should be refactored with the right classes for the table element
|
|
|
71 |
# We use javascript here to create the table so we don't get the same structure.
|
|
|
72 |
Then "Recording 1" "table_row" should exist
|
|
|
73 |
And I click on "a[data-action='delete']" "css_element" in the "Recording 1" "table_row"
|
|
|
74 |
And I click on "OK" "button" in the "Confirm" "dialogue"
|
|
|
75 |
# There is no confirmation dialog when deleting an imported record.
|
|
|
76 |
And I wait until the page is ready
|
|
|
77 |
But I should not see "Recording 1"
|
|
|
78 |
And I click on "Import recording links" "button"
|
|
|
79 |
And I select "Test Course 1 (C1)" from the "sourcecourseid" singleselect
|
|
|
80 |
And I select "RoomRecordings" from the "sourcebn" singleselect
|
|
|
81 |
And I should see "Recording 1"
|
|
|
82 |
|
|
|
83 |
@javascript @runonly
|
|
|
84 |
Scenario: I check that I can import recordings from a deleted instance into the Recording activity and then if I delete them
|
|
|
85 |
they are back into the pool to be imported again
|
|
|
86 |
Given I log in as "admin"
|
|
|
87 |
When I am on "Test Course 1" course homepage with editing mode on
|
|
|
88 |
And I delete "RoomRecordings" activity
|
|
|
89 |
# The activity is deleted asynchroneously.
|
|
|
90 |
And I run all adhoc tasks
|
|
|
91 |
And I am on the "RoomRecordings1" "bigbluebuttonbn activity" page logged in as "admin"
|
|
|
92 |
And I click on "Import recording links" "button"
|
|
|
93 |
And I select "Recordings from deleted activities" from the "sourcecourseid" singleselect
|
|
|
94 |
Then I should see "Recording 1"
|
|
|
95 |
And I should see "Recording 2"
|
|
|
96 |
# add the first recording
|
|
|
97 |
And I click on "a.action-icon" "css_element" in the "Recording 1" "table_row"
|
|
|
98 |
# add the second recording
|
|
|
99 |
And I click on "a.action-icon" "css_element" in the "Recording 2" "table_row"
|
|
|
100 |
And I wait until the page is ready
|
|
|
101 |
And I click on "Go back" "button"
|
|
|
102 |
# This should be refactored with the right classes for the table element
|
|
|
103 |
# We use javascript here to create the table so we don't get the same structure.
|
|
|
104 |
And "Recording 1" "table_row" should exist
|
|
|
105 |
And I click on "a[data-action='delete']" "css_element" in the "Recording 1" "table_row"
|
|
|
106 |
And I click on "OK" "button" in the "Confirm" "dialogue"
|
|
|
107 |
# There is no confirmation dialog when deleting an imported record.
|
|
|
108 |
And I wait until the page is ready
|
|
|
109 |
But I should not see "Recording 1"
|
|
|
110 |
# Change window size to large to avoid the "Import recording links" button being hidden (random failure).
|
|
|
111 |
And I change window size to "large"
|
|
|
112 |
And I click on "Import recording links" "button"
|
|
|
113 |
And I select "Recordings from deleted activities" from the "sourcecourseid" singleselect
|
|
|
114 |
And I should see "Recording 1"
|
|
|
115 |
But I should not see "Recording 2"
|
|
|
116 |
|
|
|
117 |
Scenario: I check that when I disable Import recording feature the import recording link button should not be shown
|
|
|
118 |
Given I log in as "admin"
|
|
|
119 |
And the following config values are set as admin:
|
|
|
120 |
| bigbluebuttonbn_importrecordings_enabled | 0 |
|
|
|
121 |
When I am on the "RoomRecordings1" "bigbluebuttonbn activity" page logged in as "admin"
|
|
|
122 |
Then I should not see "Import recording links"
|