1441 |
ariadna |
1 |
@mod @mod_bigbluebuttonbn @javascript @_file_upload
|
|
|
2 |
Feature: Test visibility of presentation on activity page
|
|
|
3 |
In order to ensure that presentation files are not visible to students when they shouldn't be
|
|
|
4 |
As a teacher
|
|
|
5 |
I set the visibility of presentation files in the BigBlueButtonBN activity
|
|
|
6 |
Background:
|
|
|
7 |
Given I enable "bigbluebuttonbn" "mod" plugin
|
|
|
8 |
And the following course exists:
|
|
|
9 |
| name | Test course |
|
|
|
10 |
| shortname | C1 |
|
|
|
11 |
And the following "users" exist:
|
|
|
12 |
| username | firstname | lastname | email |
|
|
|
13 |
| traverst | Terry | Travers | t.travers@example.com |
|
|
|
14 |
| uraverst | Uerry | Uravers | u.uravers@example.com |
|
|
|
15 |
And the following "course enrolments" exist:
|
|
|
16 |
| user | course | role |
|
|
|
17 |
| traverst | C1 | student |
|
|
|
18 |
| uraverst | C1 | teacher |
|
|
|
19 |
And the following config values are set as admin:
|
|
|
20 |
| bigbluebuttonbn_preuploadpresentation_editable | 1 |
|
|
|
21 |
|
|
|
22 |
Scenario Outline: Check that presentation file can only be viewed when teachers allow it
|
|
|
23 |
Given the following "activity" exists:
|
|
|
24 |
| course | C1 |
|
|
|
25 |
| activity | bigbluebuttonbn |
|
|
|
26 |
| name | Room recordings |
|
|
|
27 |
| moderators | role:teacher |
|
|
|
28 |
| showpresentation | <value> |
|
|
|
29 |
And the following config values are set as admin:
|
|
|
30 |
| config | value | plugin |
|
|
|
31 |
| showpresentation_default | <showfile_default> | mod_bigbluebuttonbn |
|
|
|
32 |
| showpresentation_editable | <showfile_editable>| mod_bigbluebuttonbn |
|
|
|
33 |
And I am on the "Room recordings" "bigbluebuttonbn activity editing" page logged in as "admin"
|
|
|
34 |
And I expand all fieldsets
|
|
|
35 |
And I upload "mod/bigbluebuttonbn/tests/fixtures/bbpresentation.pptx" file to "Select files" filemanager
|
|
|
36 |
And I press "Save and display"
|
|
|
37 |
When I am on the "Room recordings" Activity page logged in as <user>
|
|
|
38 |
Then I <existence> "Presentation file"
|
|
|
39 |
And I <existence> "bbpresentation.pptx"
|
|
|
40 |
|
|
|
41 |
Examples:
|
|
|
42 |
| user | value | showfile_editable | showfile_default | existence |
|
|
|
43 |
| traverst | 1 | 1 | 1 | should see |
|
|
|
44 |
| uraverst | 1 | 1 | 1 | should see |
|
|
|
45 |
| traverst | 1 | 1 | 0 | should see |
|
|
|
46 |
| uraverst | 1 | 1 | 0 | should see |
|
|
|
47 |
| traverst | 0 | 0 | 1 | should see |
|
|
|
48 |
| uraverst | 0 | 0 | 1 | should see |
|
|
|
49 |
| traverst | 0 | 0 | 0 | should not see |
|
|
|
50 |
| uraverst | 0 | 0 | 0 | should see |
|
|
|
51 |
| traverst | 0 | 1 | 1 | should not see |
|
|
|
52 |
| uraverst | 0 | 1 | 1 | should see |
|