forked from moodle/moodle
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDL-82520 mod_bigbluebuttonbn: Show presentation
* Added setting to show/hide presentation file on activity page
- Loading branch information
Showing
14 changed files
with
146 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
@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_showpresentation_editable | 1 | | ||
| bigbluebuttonbn_preuploadpresentation_editable | 1 | | ||
|
||
Scenario Outline: Check that presentation file can only be viewed when teachers allow it | ||
When the following "activity" exists: | ||
| course | C1 | | ||
| activity | bigbluebuttonbn | | ||
| name | Room recordings | | ||
| moderators | role:teacher | | ||
| showpresentation | <value> | | ||
When 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" | ||
And 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 | existence | | ||
| traverst | 1 | should see | | ||
| uraverst | 1 | should see | | ||
| traverst | 0 | should not see | | ||
| uraverst | 0 | should see | | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters