Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@mod @mod_bigbluebuttonbn @javascript
2
Feature: I can edit a bigbluebutton instance
3
  As a user I can edit a BigbluebuttonBN instance
4
 
5
  Background:  Make sure that a course is created
6
    Given a BigBlueButton mock server is configured
7
    And I enable "bigbluebuttonbn" "mod" plugin
8
    And the following config values are set as admin:
9
      | bigbluebuttonbn_voicebridge_editable | 1 |
10
    And the following "courses" exist:
11
      | fullname    | shortname   | category | enablecompletion |
12
      | Test course | Test course | 0        | 1                |
13
 
14
  Scenario Outline: Add a mod_bigbluebuttonbn instance with Room with recordings
15
    Given the following "activities" exist:
16
      | activity        | course      | name           | type           |
17
      | bigbluebuttonbn | Test course | <activityname> | <instancetype> |
18
    When I am on the "<activityname>" "bigbluebuttonbn activity" page logged in as admin
19
    And I click on "Settings" "link"
20
    Then the field "Instance type" matches value "<instancetype>"
21
    And I <shouldseerole> "Role assigned during live session"
22
    And I expand all fieldsets
23
    And I <shouldseesession> "The session may be recorded."
24
    Examples:
25
      | activityname            | instancetype | shouldseerole  | shouldseesession |
26
      | Activity with recording | 0            | should see     | should see       |
27
      | Activity only           | 1            | should see     | should see       |
28
      | Recordings only         | 2            | should not see | should not see   |
29
 
30
  Scenario: When the activity completion are locked, all the completion settings, including
31
  the one specific to BigBlueButtonBN are disabled
32
    Given the following "activities" exist:
33
      | activity        | course      | name           | type |
34
      | bigbluebuttonbn | Test course | RoomRecordings | 0    |
35
    And the following config values are set as admin:
36
      | bigbluebuttonbn_config_experimental_features | 1 |
37
      | bigbluebuttonbn_meetingevents_enabled        | 1 |
38
    And the following "users" exist:
39
      | username | firstname | lastname |
40
      | student1 | Student1  | 1        |
41
    And the following "course enrolments" exist:
42
      | user     | course      | role    |
43
      | student1 | Test course | student |
44
    And I am on the "RoomRecordings" "bigbluebuttonbn activity editing" page logged in as "admin"
45
    And I expand all fieldsets
46
    And I set the following fields to these values:
47
      | Add requirements  | 1 |
48
      | View the activity | 1 |
49
    And I press "Save and return to course"
50
    And I log out
51
    # Then I visit the page first to make sure that completion settings are locked.
52
    And I am on the "RoomRecordings" "bigbluebuttonbn activity" page logged in as "student1"
53
    And I log out
54
    And I am on the "RoomRecordings" "bigbluebuttonbn activity editing" page logged in as "admin"
55
    When I expand all fieldsets
56
    Then I should see "Completion options locked"
57
    And the "View the activity" "field" should be disabled
58
    And the "Require attendance (minutes)" "field" should be disabled
59
    And the "Chats" "field" should be disabled