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: Test the ability to end a meeting
3
  In order to ensure that end meeting capabilities are respected
4
  As a teacher
5
  I need to control who can end a meeting
6
 
7
  Background:
8
    Given a BigBlueButton mock server is configured
9
    And I enable "bigbluebuttonbn" "mod" plugin
10
 
11
  Scenario Outline: Only a BigBlueButton moderator can end a session
12
    Given the following course exists:
13
      | name      | Test course |
14
      | shortname | C1          |
15
    And the following "users" exist:
16
      | username | firstname | lastname | email                 |
17
      | traverst | Terry     | Travers  | t.travers@example.com |
18
    And the following "course enrolments" exist:
19
      | user     | course | role   |
20
      | traverst | C1     | <role> |
21
    And the following "activity" exists:
22
      | course     | C1              |
23
      | activity   | bigbluebuttonbn |
24
      | name       | Room recordings |
25
      | idnumber   | Room recordings |
26
      | moderators | <moderators>    |
27
    And the following "mod_bigbluebuttonbn > meeting" exists:
28
      | activity         | Room recordings |
29
    When I am on the "Room recordings" Activity page logged in as traverst
30
    Then "End session" "link" <existence> exist
31
 
32
    Examples:
33
      # Note: If the teacher is not listed as a moderator in the activity roles, then will not have permission to end the
34
      # session.
35
      | moderators    | role           | existence  |
36
      |               | editingteacher | should not |
37
      |               | teacher        | should not |
38
      |               | student        | should not |
39
      | role:teacher  | student        | should not |
40
      | role:teacher  | teacher        | should     |
41
      | role:student  | student        | should     |
42
      | user:traverst | student        | should     |
43
 
44
  Scenario: An administrator can always end a meeting
45
    Given the following course exists:
46
      | name      | Test course |
47
      | shortname | C1          |
48
    And the following "activity" exists:
49
      | course     | C1              |
50
      | activity   | bigbluebuttonbn |
51
      | name       | Room recordings |
52
      | idnumber   | Room recordings |
53
    And the following "mod_bigbluebuttonbn > meeting" exists:
54
      | activity         | Room recordings |
55
    When I am on the "Room recordings" Activity page logged in as admin
56
    Then "End session" "link" should exist
57
 
58
  Scenario Outline: Only a BigBlueButton moderator can end a session from the index page
59
    Given the following course exists:
60
      | name      | Test course |
61
      | shortname | C1          |
62
    And the following "users" exist:
63
      | username | firstname | lastname | email                 |
64
      | traverst | Terry     | Travers  | t.travers@example.com |
65
    And the following "course enrolments" exist:
66
      | user     | course | role   |
67
      | traverst | C1     | <role> |
68
    And the following "activity" exists:
69
      | course     | C1              |
70
      | activity   | bigbluebuttonbn |
71
      | name       | Room recordings |
72
      | idnumber   | Room recordings |
73
      | moderators | <moderators>    |
74
    And the following "mod_bigbluebuttonbn > meeting" exists:
75
      | activity         | Room recordings |
76
    When I am on the C1 "mod_bigbluebuttonbn > Index" page logged in as traverst
77
    Then "End session" "link" <existence> exist
78
 
79
    Examples:
80
      # Note: If the teacher is not listed as a moderator in the activity roles, then will not have permission to end the
81
      # session.
82
      | moderators    | role           | existence  |
83
      |               | editingteacher | should not |
84
      |               | teacher        | should not |
85
      |               | student        | should not |
86
      | role:teacher  | student        | should not |
87
      | role:teacher  | teacher        | should     |
88
      | role:student  | student        | should     |
89
      | user:traverst | student        | should     |
90
 
91
  Scenario: An administrator can always end a meeting on the index page
92
    Given the following course exists:
93
      | name      | Test course |
94
      | shortname | C1          |
95
    And the following "activity" exists:
96
      | course     | C1              |
97
      | activity   | bigbluebuttonbn |
98
      | name       | Room recordings |
99
      | idnumber   | Room recordings |
100
    And the following "mod_bigbluebuttonbn > meeting" exists:
101
      | activity         | Room recordings |
102
    When I am on the C1 "mod_bigbluebuttonbn > Index" page logged in as admin
103
    Then "End session" "link" should exist