1 |
efrain |
1 |
@mod @mod_bigbluebuttonbn @with_bbbext_simple
|
|
|
2 |
Feature: BigBlueButtonBN Subplugins test
|
|
|
3 |
As a BigBlueButtonBN user
|
|
|
4 |
I can list the subplugins the admin settings pages
|
|
|
5 |
I can see the additional settings coming from the subplugins in the edit form
|
|
|
6 |
|
|
|
7 |
Background: Make sure that the BigBlueButtonBN plugin is enabled
|
|
|
8 |
Given I enable "bigbluebuttonbn" "mod" plugin
|
|
|
9 |
And the following "courses" exist:
|
|
|
10 |
| fullname | shortname | category | enablecompletion |
|
|
|
11 |
| Test course | Test course | 0 | 1 |
|
|
|
12 |
And the following "activities" exist:
|
|
|
13 |
| activity | course | name | type |
|
|
|
14 |
| bigbluebuttonbn | Test course | BBB Instance name | 0 |
|
|
|
15 |
And the following config values are set as admin:
|
|
|
16 |
| enableasyncbackup | 0 |
|
|
|
17 |
|
|
|
18 |
Scenario: Add a subplugin and check that the settings are available
|
|
|
19 |
Given I log in as "admin"
|
|
|
20 |
When I navigate to "Plugins > Activity modules > BigBlueButton > Manage BigBlueButton extension plugins" in site administration
|
|
|
21 |
Then I should see "Simple"
|
|
|
22 |
|
|
|
23 |
Scenario: I check that new fields are available and editable in the instance edit form
|
|
|
24 |
Given I am on the "BBB Instance name" "bigbluebuttonbn activity editing" page logged in as "admin"
|
|
|
25 |
When I expand all fieldsets
|
|
|
26 |
Then I should see "New field"
|
|
|
27 |
|
|
|
28 |
@javascript
|
|
|
29 |
Scenario: I check that new fields are available and when I edit the field the value is saved
|
|
|
30 |
Given I am on the "BBB Instance name" "bigbluebuttonbn activity editing" page logged in as "admin"
|
|
|
31 |
And I expand all fieldsets
|
|
|
32 |
And I press "Save and display"
|
|
|
33 |
And I expand all fieldsets
|
|
|
34 |
And I should see "New field cannot be empty"
|
|
|
35 |
And I set the field "New field" to "50"
|
|
|
36 |
And I press "Save and display"
|
|
|
37 |
And I am on the "BBB Instance name" "bigbluebuttonbn activity editing" page
|
|
|
38 |
When I expand all fieldsets
|
|
|
39 |
Then the following fields match these values:
|
|
|
40 |
| New field | 50 |
|
|
|
41 |
|
|
|
42 |
Scenario: I check that new fields are not available when subplugin is disabled
|
|
|
43 |
Given I log in as "admin"
|
|
|
44 |
And I navigate to "Plugins > Activity modules > BigBlueButton > Manage BigBlueButton extension plugins" in site administration
|
|
|
45 |
And I click on "Disable" "link"
|
|
|
46 |
And I am on the "BBB Instance name" "bigbluebuttonbn activity editing" page
|
|
|
47 |
When I expand all fieldsets
|
|
|
48 |
Then I should not see "New field"
|
|
|
49 |
|
|
|
50 |
@javascript
|
|
|
51 |
Scenario: I check that custom completion with subplugin works
|
|
|
52 |
Given a BigBlueButton mock server is configured
|
|
|
53 |
And the following config values are set as admin:
|
|
|
54 |
| bigbluebuttonbn_meetingevents_enabled | 1 |
|
|
|
55 |
And the following "users" exist:
|
|
|
56 |
| username | firstname | lastname | email |
|
|
|
57 |
| traverst | Terry | Travers | t.travers@example.com |
|
|
|
58 |
And the following "course enrolments" exist:
|
|
|
59 |
| user | course | role |
|
|
|
60 |
| traverst | Test course | student |
|
|
|
61 |
And I am on the "BBB Instance name" "bigbluebuttonbn activity editing" page logged in as "admin"
|
|
|
62 |
And I expand all fieldsets
|
|
|
63 |
And I set the following fields to these values:
|
|
|
64 |
| Add requirements | 1 |
|
|
|
65 |
| Raise hand twice | 1 |
|
|
|
66 |
And I set the field "New field" to "50"
|
|
|
67 |
And I press "Save and display"
|
|
|
68 |
# We start the meeting here so to make sure that meta_analytics-callback-url is set.
|
|
|
69 |
And the following "mod_bigbluebuttonbn > meeting" exists:
|
|
|
70 |
| activity | BBB Instance name |
|
|
|
71 |
And I log out
|
|
|
72 |
And I am on the "BBB Instance name" "bigbluebuttonbn activity" page logged in as "traverst"
|
|
|
73 |
And I click on "Join session" "link"
|
|
|
74 |
And I switch to "bigbluebutton_conference" window
|
|
|
75 |
And I wait until the page is ready
|
|
|
76 |
And I follow "End Meeting"
|
|
|
77 |
And the BigBlueButtonBN server has received the following events from user "traverst":
|
|
|
78 |
| instancename | eventtype | eventdata |
|
|
|
79 |
| BBB Instance name | raisehand | 1 |
|
|
|
80 |
| BBB Instance name | raisehand | 1 |
|
|
|
81 |
# Selenium driver does not like the click action to be done before we
|
|
|
82 |
# automatically close the window so we need to make sure that the window
|
|
|
83 |
# is closed before.
|
|
|
84 |
And I close all opened windows
|
|
|
85 |
And I switch to the main window
|
|
|
86 |
And the BigBlueButtonBN activity "BBB Instance name" has sent recording all its events
|
|
|
87 |
And I run all adhoc tasks
|
|
|
88 |
When I reload the page
|
|
|
89 |
Then I should see "Done: Raise hand twice in a meeting."
|