1 |
efrain |
1 |
@mod @mod_bigbluebuttonbn
|
|
|
2 |
Feature: As a user I can complete a BigblueButtonBN activity by usual or custom criteria
|
|
|
3 |
|
|
|
4 |
Background:
|
|
|
5 |
Given I enable "bigbluebuttonbn" "mod" plugin
|
|
|
6 |
And the following "courses" exist:
|
|
|
7 |
| fullname | shortname | category | enablecompletion |
|
|
|
8 |
| Test course | C1 | 0 | 1 |
|
|
|
9 |
And the following "activities" exist:
|
|
|
10 |
| activity | name | intro | course | idnumber | type | recordings_imported |
|
|
|
11 |
| bigbluebuttonbn | RoomRecordings | Test Room Recording description | C1 | bigbluebuttonbn1 | 0 | 0 |
|
|
|
12 |
And the following "users" exist:
|
|
|
13 |
| username | firstname | lastname | email |
|
|
|
14 |
| traverst | Terry | Travers | t.travers@example.com |
|
|
|
15 |
And the following "course enrolments" exist:
|
|
|
16 |
| user | course | role |
|
|
|
17 |
| traverst | C1 | student |
|
|
|
18 |
|
|
|
19 |
Scenario: I set the completion to standard type of completion.
|
|
|
20 |
Given I am on the "RoomRecordings" "bigbluebuttonbn activity" page logged in as admin
|
|
|
21 |
When I click on "Settings" "link"
|
|
|
22 |
And I expand all fieldsets
|
|
|
23 |
And I set the following fields to these values:
|
|
|
24 |
| Add requirements | 1 |
|
|
|
25 |
| View the activity | 1 |
|
|
|
26 |
And I press "Save and display"
|
|
|
27 |
And I log out
|
|
|
28 |
And I am on the "RoomRecordings" "bigbluebuttonbn activity" page logged in as traverst
|
|
|
29 |
Then I should see "Done: View"
|
|
|
30 |
|
|
|
31 |
@javascript
|
|
|
32 |
Scenario: I set the completion type to custom completion
|
|
|
33 |
Given a BigBlueButton mock server is configured
|
|
|
34 |
And the following config values are set as admin:
|
|
|
35 |
| bigbluebuttonbn_meetingevents_enabled | 1 |
|
|
|
36 |
And I am on the "RoomRecordings" "bigbluebuttonbn activity" page logged in as admin
|
|
|
37 |
And I click on "Settings" "link"
|
|
|
38 |
And I expand all fieldsets
|
|
|
39 |
And I set the following fields to these values:
|
|
|
40 |
| Add requirements | 1 |
|
|
|
41 |
| Chats | 1 |
|
|
|
42 |
And I press "Save and display"
|
|
|
43 |
# We start the meeting here so to make sure that meta_analytics-callback-url is set.
|
|
|
44 |
And the following "mod_bigbluebuttonbn > meeting" exists:
|
|
|
45 |
| activity | RoomRecordings |
|
|
|
46 |
And I log out
|
|
|
47 |
And I am on the "RoomRecordings" "bigbluebuttonbn activity" page logged in as traverst
|
|
|
48 |
When I click on "Join session" "link"
|
|
|
49 |
And I switch to "bigbluebutton_conference" window
|
|
|
50 |
And I wait until the page is ready
|
|
|
51 |
And I follow "End Meeting"
|
|
|
52 |
And the BigBlueButtonBN server has received the following events from user "traverst":
|
|
|
53 |
| instancename | eventtype | eventdata |
|
|
|
54 |
| RoomRecordings | chats | 1 |
|
|
|
55 |
# Selenium driver does not like the click action to be done before we
|
|
|
56 |
# automatically close the window so we need to make sure that the window
|
|
|
57 |
# is closed before.
|
|
|
58 |
And I close all opened windows
|
|
|
59 |
And I switch to the main window
|
|
|
60 |
And the BigBlueButtonBN activity "RoomRecordings" has sent recording all its events
|
|
|
61 |
And I run all adhoc tasks
|
|
|
62 |
And I reload the page
|
|
|
63 |
Then I should see "Done: Participate in 1 chat(s)"
|
|
|
64 |
|
|
|
65 |
@javascript
|
|
|
66 |
Scenario: Validate completion when registering live sessions
|
|
|
67 |
Given the following config values are set as admin:
|
|
|
68 |
| bigbluebuttonbn_meetingevents_enabled | 1 |
|
|
|
69 |
When I am on the "RoomRecordings" "bigbluebuttonbn activity" page logged in as admin
|
|
|
70 |
And I click on "Validate completion" "link"
|
|
|
71 |
Then I should see "Validate completion has been triggered."
|