You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

78 lines
4.2 KiB

Feature: callapi/public
Background:
Given user "participant1" exists
And user "participant2" exists
And user "participant3" exists
Scenario: User has no rooms
Then user "participant1" is participant of the following rooms
Then user "participant2" is participant of the following rooms
Then user "participant3" is participant of the following rooms
Scenario: User1 invites user2 to a public room and they can do everything
When user "participant1" creates room "room"
| roomType | 3 |
And user "participant1" adds "participant2" to room "room" with 200
Then user "participant1" is participant of room "room"
And user "participant2" is participant of room "room"
Then user "participant1" sees 0 peers in call "room" with 200
And user "participant2" sees 0 peers in call "room" with 200
Then user "participant1" joins call "room" with 200
Then user "participant1" sees 1 peers in call "room" with 200
And user "participant2" sees 1 peers in call "room" with 200
And user "participant2" joins call "room" with 200
Then user "participant1" sees 2 peers in call "room" with 200
And user "participant2" sees 2 peers in call "room" with 200
Then user "participant1" pings call "room" with 200
And user "participant2" pings call "room" with 200
Then user "participant1" leaves call "room" with 200
Then user "participant1" sees 1 peers in call "room" with 200
And user "participant2" sees 1 peers in call "room" with 200
Then user "participant2" leaves call "room" with 200
Then user "participant1" sees 0 peers in call "room" with 200
And user "participant2" sees 0 peers in call "room" with 200
Scenario: User1 invites user2 to a public room and user3 can do everything
When user "participant1" creates room "room"
| roomType | 3 |
And user "participant1" adds "participant2" to room "room" with 200
Then user "participant1" is participant of room "room"
Then user "participant3" is not participant of room "room"
And user "participant3" sees 0 peers in call "room" with 404
Then user "participant1" joins call "room" with 200
Then user "participant1" sees 1 peers in call "room" with 200
And user "participant3" sees 0 peers in call "room" with 404
And user "participant3" joins call "room" with 200
Then user "participant1" sees 2 peers in call "room" with 200
And user "participant3" sees 2 peers in call "room" with 200
And user "participant3" pings call "room" with 200
Then user "participant1" sees 2 peers in call "room" with 200
And user "participant3" sees 2 peers in call "room" with 200
Then user "participant3" leaves call "room" with 200
Then user "participant1" sees 1 peers in call "room" with 200
And user "participant3" sees 0 peers in call "room" with 404
Then user "participant1" leaves call "room" with 200
Then user "participant1" sees 0 peers in call "room" with 200
And user "participant3" sees 0 peers in call "room" with 404
Scenario: User1 invites user2 to a public room and guest can do everything
When user "participant1" creates room "room"
| roomType | 3 |
And user "participant1" adds "participant2" to room "room" with 200
Then user "participant1" is participant of room "room"
And user "guest" sees 0 peers in call "room" with 404
Then user "participant1" joins call "room" with 200
Then user "participant1" sees 1 peers in call "room" with 200
And user "guest" sees 0 peers in call "room" with 404
And user "guest" joins call "room" with 200
Then user "participant1" sees 2 peers in call "room" with 200
And user "guest" sees 2 peers in call "room" with 200
And user "guest" pings call "room" with 200
Then user "participant1" sees 2 peers in call "room" with 200
And user "guest" sees 2 peers in call "room" with 200
Then user "guest" leaves call "room" with 200
Then user "participant1" sees 1 peers in call "room" with 200
And user "guest" sees 0 peers in call "room" with 404
Then user "participant1" leaves call "room" with 200
Then user "participant1" sees 0 peers in call "room" with 200
And user "guest" sees 0 peers in call "room" with 404