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: Test the ability to run the full meeting lifecycle (start to end)
3
  I can start a meeting then end it
4
 
5
  Background:
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_userlimit_editable | 1 |
10
    And the following course exists:
11
      | name      | Test course |
12
      | shortname | C1          |
13
    And the following "users" exist:
14
      | username | firstname | lastname | email                 |
15
      | traverst | Terry     | Travers  | t.travers@example.com |
16
      | uraverst | Uerry     | Uravers  | u.uravers@example.com |
17
      | vraverst | Verry     | Vravers  | v.vravers@example.com |
18
    And the following "course enrolments" exist:
19
      | user     | course | role    |
20
      | traverst | C1     | student |
21
      | uraverst | C1     | student |
22
      | vraverst | C1     | student |
23
    And the following "activity" exists:
24
      | course     | C1                  |
25
      | activity   | bigbluebuttonbn     |
26
      | name       | Room recordings     |
27
      | idnumber   | Room recordings     |
28
      | moderators | role:editingteacher |
29
      | wait       | 0                   |
30
      | userlimit  | 2                   |
31
 
32
  Scenario: Users should be able to join a meeting then end the meeting for themselves and
33
  return to the meeting page to join again.
34
    When I am on the "Room recordings" Activity page logged in as traverst
35
    And "Join session" "link" should exist
36
    And I click on "Join session" "link"
37
    And I switch to "bigbluebutton_conference" window
38
    And I click on "End Meeting" "link"
39
    # Selenium driver does not like the click action to be done before we
40
    # automatically close the window so we need to make sure that the window
41
    # is closed before.
42
    And I close all opened windows
43
    And I switch to the main window
44
    And I reload the page
45
    Then I should see "Room recordings"
46
    And I should see "This room is ready. You can join the session now."
47
 
48
  Scenario: Users can join the meeting until the maximum number of users has been reached
49
    When I am on the "Room recordings" Activity page logged in as traverst
50
    Then "Join session" "link" should exist
51
    And I click on "Join session" "link"
52
    And I switch to the main window
53
    And I log out
54
    And I am on the "Room recordings" Activity page logged in as uraverst
55
    And "Join session" "link" should exist
56
    And I click on "Join session" "link"
57
    And I switch to the main window
58
    And I log out
59
    And I am on the "Room recordings" Activity page logged in as vraverst
60
    And "Join session" "link" should not exist
61
    And I should see "The limit of how many users allowed in a session has been reached"
62
    And I log out
63
    And I am on the "Room recordings" Activity page logged in as admin
64
    And "Join session" "link" should not exist
65
    And I should see "The limit of how many users allowed in a session has been reached"