1 |
efrain |
1 |
@mod @mod_bigbluebuttonbn @javascript
|
|
|
2 |
Feature: Test the ability to run the full meeting lifecycle (start to end) for guest users
|
|
|
3 |
|
|
|
4 |
Background:
|
|
|
5 |
Given a BigBlueButton mock server is configured
|
|
|
6 |
And I enable "bigbluebuttonbn" "mod" plugin
|
|
|
7 |
And the following config values are set as admin:
|
|
|
8 |
| bigbluebuttonbn_guestaccess_enabled | 1 |
|
|
|
9 |
And the following course exists:
|
|
|
10 |
| name | Test course |
|
|
|
11 |
| shortname | C1 |
|
|
|
12 |
And the following "users" exist:
|
|
|
13 |
| username | firstname | lastname | email |
|
|
|
14 |
| traverst | Terry | Travers | t.travers@example.com |
|
|
|
15 |
| teacher | Teacher | Teacher | t.eacher@example.com |
|
|
|
16 |
And the following "course enrolments" exist:
|
|
|
17 |
| user | course | role |
|
|
|
18 |
| traverst | C1 | student |
|
|
|
19 |
| teacher | C1 | editingteacher |
|
|
|
20 |
And the following "activity" exists:
|
|
|
21 |
| course | C1 |
|
|
|
22 |
| activity | bigbluebuttonbn |
|
|
|
23 |
| name | Room recordings |
|
|
|
24 |
| idnumber | Room recordings |
|
|
|
25 |
| moderators | role:editingteacher |
|
|
|
26 |
| wait | 0 |
|
|
|
27 |
| guestallowed | 1 |
|
|
|
28 |
|
|
|
29 |
Scenario: Student users should be able to see the guest user information
|
|
|
30 |
When I am on the "Room recordings" Activity page logged in as traverst
|
|
|
31 |
Then I should not see "Add guests"
|
|
|
32 |
|
|
|
33 |
Scenario: Teacher users should be able to see the guest user information
|
|
|
34 |
When I am on the "Room recordings" Activity page logged in as teacher
|
|
|
35 |
And I should see "Add guests"
|
|
|
36 |
Then I click on "Add guests" "button"
|
|
|
37 |
And I should see "Add guests to this meeting" in the ".modal-dialog" "css_element"
|
|
|
38 |
|
|
|
39 |
Scenario: Guest users should be able to join a meeting as guest when the meeting is running.
|
|
|
40 |
When I am on the "Room recordings" Activity page logged in as traverst
|
|
|
41 |
And "Join session" "link" should exist
|
|
|
42 |
And I click on "Join session" "link"
|
|
|
43 |
And I switch to the main window
|
|
|
44 |
And I log out
|
|
|
45 |
And I close all opened windows
|
|
|
46 |
And I am on the "Room recordings" "mod_bigbluebuttonbn > BigblueButtonBN Guest" page
|
|
|
47 |
Then I should see "Guest username"
|
|
|
48 |
And I should see "Password"
|
|
|
49 |
And I set the field "username" to "Test Guest User"
|
|
|
50 |
And I click on "Join meeting" "button"
|
|
|
51 |
And I should see "Test Guest User"
|
|
|
52 |
And I click on "Leave Meeting" "link"
|
|
|
53 |
And I should see "C1: Room recordings"
|