__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
@mod @mod_bigbluebuttonbn @javascript @_file_upload
Feature: Test visibility of presentation on activity page
In order to ensure that presentation files are not visible to students when they shouldn't be
As a teacher
I set the visibility of presentation files in the BigBlueButtonBN activity
Background:
Given I enable "bigbluebuttonbn" "mod" plugin
And the following course exists:
| name | Test course |
| shortname | C1 |
And the following "users" exist:
| username | firstname | lastname | email |
| traverst | Terry | Travers | t.travers@example.com |
| uraverst | Uerry | Uravers | u.uravers@example.com |
And the following "course enrolments" exist:
| user | course | role |
| traverst | C1 | student |
| uraverst | C1 | teacher |
And the following config values are set as admin:
| bigbluebuttonbn_preuploadpresentation_editable | 1 |
Scenario Outline: Check that presentation file can only be viewed when teachers allow it
Given the following "activity" exists:
| course | C1 |
| activity | bigbluebuttonbn |
| name | Room recordings |
| moderators | role:teacher |
| showpresentation | <value> |
And the following config values are set as admin:
| config | value | plugin |
| showpresentation_default | <showfile_default> | mod_bigbluebuttonbn |
| showpresentation_editable | <showfile_editable>| mod_bigbluebuttonbn |
And I am on the "Room recordings" "bigbluebuttonbn activity editing" page logged in as "admin"
And I expand all fieldsets
And I upload "mod/bigbluebuttonbn/tests/fixtures/bbpresentation.pptx" file to "Select files" filemanager
And I press "Save and display"
When I am on the "Room recordings" Activity page logged in as <user>
Then I <existence> "Presentation file"
And I <existence> "bbpresentation.pptx"
Examples:
| user | value | showfile_editable | showfile_default | existence |
| traverst | 1 | 1 | 1 | should see |
| uraverst | 1 | 1 | 1 | should see |
| traverst | 1 | 1 | 0 | should see |
| uraverst | 1 | 1 | 0 | should see |
| traverst | 0 | 0 | 1 | should see |
| uraverst | 0 | 0 | 1 | should see |
| traverst | 0 | 0 | 0 | should not see |
| uraverst | 0 | 0 | 0 | should see |
| traverst | 0 | 1 | 1 | should not see |
| uraverst | 0 | 1 | 1 | should see |
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| fixtures | Folder | 0777 |
|
|
| add_instance.feature | File | 2.57 KB | 0777 |
|
| add_instance_in_empty_state.feature | File | 2.36 KB | 0777 |
|
| behat_mod_bigbluebuttonbn.php | File | 10.28 KB | 0777 |
|
| bigbluebuttonbn_activity_availability.feature | File | 2.31 KB | 0777 |
|
| completion.feature | File | 3.48 KB | 0777 |
|
| edit_instance.feature | File | 3.06 KB | 0777 |
|
| end_meeting.feature | File | 4.45 KB | 0777 |
|
| group_mode.feature | File | 7.95 KB | 0777 |
|
| guest_access.feature | File | 4.28 KB | 0777 |
|
| join_meeting.feature | File | 2.97 KB | 0777 |
|
| join_meeting_as_guest.feature | File | 2.4 KB | 0777 |
|
| lock_settings.feature | File | 2.99 KB | 0777 |
|
| meeting_roles.feature | File | 1.78 KB | 0777 |
|
| recordings.feature | File | 3.85 KB | 0777 |
|
| recordings_import.feature | File | 6.96 KB | 0777 |
|
| roles.feature | File | 1.11 KB | 0777 |
|
| room.feature | File | 2.22 KB | 0777 |
|
| start_meeting.feature | File | 4.41 KB | 0777 |
|
| subplugins.feature | File | 5.99 KB | 0777 |
|
| view_presentation.feature | File | 2.96 KB | 0777 |
|