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: Guest access allows external users to connect to a meeting
3
 
4
  Background:
5
    Given a BigBlueButton mock server is configured
6
    And I enable "bigbluebuttonbn" "mod" plugin
7
    And the following "courses" exist:
8
      | fullname      | shortname | category |
9
      | Test Course 1 | C1        | 0        |
10
    And the following "activities" exist:
11
      | activity        | name                    | intro                           | course | idnumber         | type | recordings_imported | guestallowed |
12
      | bigbluebuttonbn | RoomRecordings          | Test Room Recording description | C1     | bigbluebuttonbn1 | 0    | 0                   | 0            |
13
      | bigbluebuttonbn | RoomRecordingsWithGuest | Test Room with guest            | C1     | bigbluebuttonbn1 | 0    | 0                   | 1            |
14
 
15
  @javascript
16
  Scenario Outline: I need to enable guest access to see the instance parameters
17
    Given the following config values are set as admin:
18
      | bigbluebuttonbn_guestaccess_enabled | <guestaccess> |
19
    When I am on the "RoomRecordings" "bigbluebuttonbn activity editing" page logged in as "admin"
20
    Then I <result> "Guest access"
21
    And I log out
22
    Examples:
23
      | guestaccess | result         |
24
      | 1           | should see     |
25
      | 0           | should not see |
26
 
27
  @javascript
28
  Scenario Outline: I should see Guest settings on the module form
29
    Given the following config values are set as admin:
30
      | bigbluebuttonbn_guestaccess_enabled | 1 |
31
    When I am on the "RoomRecordings" "bigbluebuttonbn activity editing" page logged in as "admin"
32
    And I should see "Guest access"
33
    And I click on "Expand all" "link" in the "region-main" "region"
34
    And I should see "Allow guest access"
35
    And I set the field "Allow guest access" to <guestaccess>
36
    Then I <result> "Guests joining must be admitted by a moderator"
37
    And I <seelink> "Meeting link"
38
    And I <seepassword> "Meeting password"
39
    And I <seecopylink> "Copy link"
40
    And I <seecopypw> "Copy password"
41
    And I log out
42
 
43
    Examples:
44
      | guestaccess | result         | seelink        | seepassword     | seecopylink    | seecopypw   |
45
      | "1"         | should see     | should see     | should see      | should see     | should see  |
46
      | "0"         | should not see | should not see | should not see  | should not see | should not see |
47
 
48
  @javascript
49
  Scenario: I should be able to use the guest link and see the popup dialog
50
    Given the following config values are set as admin:
51
      | bigbluebuttonbn_guestaccess_enabled | 1 |
52
    When I am on the "RoomRecordingsWithGuest" "bigbluebuttonbn activity" page logged in as "admin"
53
    Then I click on "Add guests" "button"
54
    And I should see "Meeting link"
55
    And I should see "Meeting password"
56
    And I should see "Copy link"
57
    And I should see "Copy password"
58
 
59
  @javascript
60
  Scenario: I should see errors when submitting the guest access form with erroneous values
61
    Given the following config values are set as admin:
62
      | bigbluebuttonbn_guestaccess_enabled | 1 |
63
    And I am on the "RoomRecordingsWithGuest" "bigbluebuttonbn activity" page logged in as "admin"
64
    And I click on "Add guests" "button"
65
    And I set the field "Guest emails" to "123"
66
    When I click on "OK" "button" in the "Add guests to this meeting" "dialogue"
67
    Then I should see "Invalid email: 123"
68
 
69
  @javascript
70
  Scenario: I should be able to invite guest to the meeting
71
    Given the following config values are set as admin:
72
      | bigbluebuttonbn_guestaccess_enabled | 1 |
73
    When I am on the "RoomRecordingsWithGuest" "bigbluebuttonbn activity" page logged in as "admin"
74
    And I click on "Add guests" "button"
75
    And I set the field "Guest emails" to "testuser@email.com"
76
    And  I click on "OK" "button" in the "Add guests to this meeting" "dialogue"
77
    Then I should see "An invitation will be sent to testuser@email.com."
78
    And I log out
79
 
80
  Scenario: I should be able to invite guest to the meeting even if forcelogin is set
81
    Given the following config values are set as admin:
82
      | bigbluebuttonbn_guestaccess_enabled | 1 |
83
      | forcelogin                          | 1 |
84
    When I am on the "RoomRecordingsWithGuest" "mod_bigbluebuttonbn > BigblueButtonBN Guest" page
85
    Then I should see "C1: RoomRecordingsWithGuest"