AutorÃa | Ultima modificación | Ver Log |
@mod @mod_bigbluebuttonbnFeature: As a user I can complete a BigblueButtonBN activity by usual or custom criteriaBackground:Given I enable "bigbluebuttonbn" "mod" pluginAnd the following "courses" exist:| fullname | shortname | category | enablecompletion || Test course | C1 | 0 | 1 |And the following "activities" exist:| activity | name | intro | course | idnumber | type | recordings_imported || bigbluebuttonbn | RoomRecordings | Test Room Recording description | C1 | bigbluebuttonbn1 | 0 | 0 |And the following "users" exist:| username | firstname | lastname | email || traverst | Terry | Travers | t.travers@example.com |And the following "course enrolments" exist:| user | course | role || traverst | C1 | student |Scenario: I set the completion to standard type of completion.Given I am on the "RoomRecordings" "bigbluebuttonbn activity" page logged in as adminWhen I click on "Settings" "link"And I expand all fieldsetsAnd I set the following fields to these values:| Add requirements | 1 || View the activity | 1 |And I press "Save and display"And I log outAnd I am on the "RoomRecordings" "bigbluebuttonbn activity" page logged in as traverstThen I should see "Done: View"@javascriptScenario: I set the completion type to custom completionGiven a BigBlueButton mock server is configuredAnd the following config values are set as admin:| bigbluebuttonbn_meetingevents_enabled | 1 |And I am on the "RoomRecordings" "bigbluebuttonbn activity" page logged in as adminAnd I click on "Settings" "link"And I expand all fieldsetsAnd I set the following fields to these values:| Add requirements | 1 || Chats | 1 |And I press "Save and display"# We start the meeting here so to make sure that meta_analytics-callback-url is set.And the following "mod_bigbluebuttonbn > meeting" exists:| activity | RoomRecordings |And I log outAnd I am on the "RoomRecordings" "bigbluebuttonbn activity" page logged in as traverstWhen I click on "Join session" "link"And I switch to "bigbluebutton_conference" windowAnd I wait until the page is readyAnd I follow "End Meeting"And the BigBlueButtonBN server has received the following events from user "traverst":| instancename | eventtype | eventdata || RoomRecordings | chats | 1 |# Selenium driver does not like the click action to be done before we# automatically close the window so we need to make sure that the window# is closed before.And I close all opened windowsAnd I switch to the main windowAnd the BigBlueButtonBN activity "RoomRecordings" has sent recording all its eventsAnd I run all adhoc tasksAnd I reload the pageThen I should see "Done: Participate in 1 chat(s)"@javascriptScenario: Validate completion when registering live sessionsGiven the following config values are set as admin:| bigbluebuttonbn_meetingevents_enabled | 1 |When I am on the "RoomRecordings" "bigbluebuttonbn activity" page logged in as adminAnd I click on "Validate completion" "link"Then I should see "Validate completion has been triggered."