Skip to content

Commit

Permalink
Merge branch 'MDL-77460-400' of https://github.com/lameze/moodle into…
Browse files Browse the repository at this point in the history
… MOODLE_400_STABLE
  • Loading branch information
sarjona committed Mar 6, 2023
2 parents 1635a0f + fc5eba8 commit 6b4edc0
Showing 1 changed file with 21 additions and 24 deletions.
45 changes: 21 additions & 24 deletions mod/bigbluebuttonbn/tests/behat/roles.feature
@@ -1,28 +1,25 @@
@mod @mod_bigbluebuttonbn @javascript
Feature: Bigbluebuttonbn rooms
When a meeting is created, roles for each type of participant can be changed
Feature: Set role as Bigbluebuttonbn moderator
In order to set a room moderator
As admin
I need to see the list of roles

Background: Make sure that a course is created
Background:
Given I enable "bigbluebuttonbn" "mod" plugin
And the following course exists:
| name | Test course |
| shortname | C1 |
And the following "users" exist:
| username | firstname | lastname | email |
| traverst | Terry | Travers | t.travers@example.com |
And the following "course enrolments" exist:
| user | course | role |
| traverst | C1 | student |
And the following "activities" exist:
| activity | name | intro | course | idnumber | type | recordings_imported |
| bigbluebuttonbn | RoomRecordings | Test Room Recording description | C1 | bigbluebuttonbn1 | 0 | 0 |
And the following "course" exist:
| fullname | shortname |
| Course 1 | C1 |
And the following "activity" exists:
| course | C1 |
| activity | bigbluebuttonbn |
| name | RoomRecordings |

Scenario: Add a mod_bigbluebuttonbn instance and set the teacher role as moderator
When I am on the "RoomRecordings" "bigbluebuttonbn activity editing" page logged in as "admin"
Then I set the field "bigbluebuttonbn_participant_selection_type" to "Role"
Then I set the field "bigbluebuttonbn_participant_selection" to "Manager"
Then I click on "bigbluebuttonbn_participant_selection_add" "button"
Then I set the field "select-for-role-1" to "Moderator"
Then I press "Save and display"
Then I am on the "RoomRecordings" "bigbluebuttonbn activity editing" page logged in as "admin"
And "[name=select-for-role-1] option[value=moderator][selected]" "css_element" should exist
Scenario: Set the manager role as room moderator
Given I am on the "RoomRecordings" "bigbluebuttonbn activity editing" page logged in as "admin"
And I set the field "bigbluebuttonbn_participant_selection_type" to "Role"
And I set the field "bigbluebuttonbn_participant_selection" to "Manager"
And I click on "bigbluebuttonbn_participant_selection_add" "button"
And I set the field "select-for-role-1" to "Moderator"
And I press "Save and display"
When I am on the "RoomRecordings" "bigbluebuttonbn activity editing" page
Then "[name=select-for-role-1] option[value=moderator][selected]" "css_element" should exist

0 comments on commit 6b4edc0

Please sign in to comment.