Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@mod @mod_bigbluebuttonbn
2
Feature: The recording can be managed through the room page
3
  As a user I am able to see the relevant recording for a given bigbluebutton activity and modify its parameters
4
 
5
  Background:  Make sure that import recording is enabled and course, activities and recording exists
6
    Given a BigBlueButton mock server is configured
7
    And I enable "bigbluebuttonbn" "mod" plugin
8
    And the following "courses" exist:
9
      | fullname      | shortname | category |
10
      | Test Course 1 | C1        | 0        |
11
      | Test Course 2 | C2        | 0        |
12
    And the following "users" exist:
13
      | username | firstname | lastname | email             |
14
      | user1    | User      | 1        | user1@example.com |
15
    And the following "activities" exist:
16
      | activity        | name           | intro                           | course | idnumber         | type | recordings_imported |
17
      | bigbluebuttonbn | RoomRecordings | Test Room Recording description | C1     | bigbluebuttonbn1 | 0    | 0                   |
18
    And the following "mod_bigbluebuttonbn > meeting" exists:
19
      | activity | RoomRecordings |
20
    And the following "mod_bigbluebuttonbn > recordings" exist:
21
      | bigbluebuttonbn | name        | description   | status |
22
      | RoomRecordings  | Recording 1 | Description 1 | 2      |
23
      | RoomRecordings  | Recording 2 | Description 2 | 3      |
24
      | RoomRecordings  | Recording 3 | Description 3 | 0      |
25
      | RoomRecordings  | Recording 4 | Description 4 | 1      |
26
 
27
  @javascript
28
  Scenario: I can see the recordings related to an activity
29
    Given I am on the "RoomRecordings" "bigbluebuttonbn activity" page logged in as admin
30
    And "Recording 1" "table_row" should exist
31
    And "Recording 2" "table_row" should exist
32
    And "Recording 3" "table_row" should not exist
33
    And "Recording 4" "table_row" should not exist
34
    # Recording 3 will be fetched and metadata will be present so, we will see it.
35
    When the BigBlueButtonBN server has sent recording ready notifications
36
    And I run the scheduled task "mod_bigbluebuttonbn\task\check_pending_recordings"
37
    And I reload the page
38
    Then "Recording 1" "table_row" should exist
39
    And "Recording 2" "table_row" should exist
40
    And "Recording 3" "table_row" should exist
41
    And "Recording 4" "table_row" should not exist
42
 
43
  @javascript
44
  Scenario: I can rename the recording
45
    Given I am on the "RoomRecordings" "bigbluebuttonbn activity" page logged in as admin
46
    When I set the field "Edit name" in the "Recording 1" "table_row" to "Recording with an updated name 1"
47
    Then I should see "Recording with an updated name 1"
48
    And I should see "Recording 2"
49
    And I reload the page
50
    And I should see "Recording with an updated name 1"
51
    And I should see "Recording 2"
52
 
53
  @javascript
54
  Scenario: I can set a new description for this recording
55
    Given I am on the "RoomRecordings" "bigbluebuttonbn activity" page logged in as admin
56
    When I set the field "Edit description" in the "Recording 1" "table_row" to "This is a new recording description 1"
57
    Then I should see "This is a new recording description 1"
58
    And I should see "Description 2" in the "Recording 2" "table_row"
59
    And I reload the page
60
    And I should see "This is a new recording description 1" in the "Recording 1" "table_row"
61
    And I should see "Description 2" in the "Recording 2" "table_row"
62
 
63
  @javascript
64
  Scenario: I can delete a recording
65
    Given I am on the "RoomRecordings" "bigbluebuttonbn activity" page logged in as admin
66
    And I change window size to "large"
67
    When I click on "a[data-action='delete']" "css_element" in the "Recording 1" "table_row"
68
    And I click on "OK" "button" in the "Confirm" "dialogue"
69
    Then I should not see "Recording 1"
70
    And I should see "Recording 2"
71
    And I reload the page
72
    And I should not see "Recording 1"
73
    And I should see "Recording 2"