-
Notifications
You must be signed in to change notification settings - Fork 418
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11027 from nextcloud/backport/11026/stable28
[stable28] Fix undefined $participant when calling a lobbied room
- Loading branch information
Showing
2 changed files
with
49 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
Feature: callapi/lobby | ||
Background: | ||
Given user "participant1" exists | ||
And user "participant2" exists | ||
|
||
Scenario: Participant1 calls without lobby | ||
When user "participant1" creates room "room" (v4) | ||
| roomType | 3 | | ||
| roomName | room | | ||
And user "participant1" adds user "participant2" to room "room" with 200 (v4) | ||
Then user "participant1" is participant of room "room" (v4) | ||
And user "participant2" is participant of room "room" (v4) | ||
Then user "participant1" joins room "room" with 200 (v4) | ||
Then user "participant1" joins call "room" with 200 (v4) | ||
Then user "participant2" has the following notifications | ||
| app | object_type | object_id | subject | | ||
| spreed | call | room | A group call has started in room | | ||
|
||
Scenario: Participant1 calls while participant2 is blocked by the lobby | ||
When user "participant1" creates room "room" (v4) | ||
| roomType | 3 | | ||
| roomName | room | | ||
And user "participant1" adds user "participant2" to room "room" with 200 (v4) | ||
Then user "participant1" is participant of room "room" (v4) | ||
And user "participant2" is participant of room "room" (v4) | ||
When user "participant1" sets lobby state for room "room" to "non moderators" with 200 (v4) | ||
Then user "participant1" joins room "room" with 200 (v4) | ||
Then user "participant1" joins call "room" with 200 (v4) | ||
Then user "participant2" has the following notifications | ||
|
||
Scenario: Participant1 calls while participant2 is moderator | ||
When user "participant1" creates room "room" (v4) | ||
| roomType | 3 | | ||
| roomName | room | | ||
And user "participant1" adds user "participant2" to room "room" with 200 (v4) | ||
Then user "participant1" is participant of room "room" (v4) | ||
And user "participant2" is participant of room "room" (v4) | ||
And user "participant1" promotes "participant2" in room "room" with 200 (v4) | ||
When user "participant1" sets lobby state for room "room" to "non moderators" with 200 (v4) | ||
Then user "participant1" joins room "room" with 200 (v4) | ||
Then user "participant1" joins call "room" with 200 (v4) | ||
Then user "participant2" has the following notifications | ||
| app | object_type | object_id | subject | | ||
| spreed | call | room | A group call has started in room | |