Changeset View
Changeset View
Standalone View
Standalone View
src/tests/Browser/Meet/RoomSetupTest.php
Show First 20 Lines • Show All 298 Lines • ▼ Show 20 Lines | public function testSubscribers(): void | ||||
}) | }) | ||||
->assertElementsCount('@session div.meet-video', 0) | ->assertElementsCount('@session div.meet-video', 0) | ||||
->assertElementsCount('@session video', 0) | ->assertElementsCount('@session video', 0) | ||||
->assertElementsCount('@session .meet-subscriber', 1) | ->assertElementsCount('@session .meet-subscriber', 1) | ||||
->assertToolbar([ | ->assertToolbar([ | ||||
'audio' => RoomPage::BUTTON_INACTIVE | RoomPage::BUTTON_DISABLED, | 'audio' => RoomPage::BUTTON_INACTIVE | RoomPage::BUTTON_DISABLED, | ||||
'video' => RoomPage::BUTTON_INACTIVE | RoomPage::BUTTON_DISABLED, | 'video' => RoomPage::BUTTON_INACTIVE | RoomPage::BUTTON_DISABLED, | ||||
'screen' => RoomPage::BUTTON_INACTIVE | RoomPage::BUTTON_DISABLED, | 'screen' => RoomPage::BUTTON_INACTIVE | RoomPage::BUTTON_DISABLED, | ||||
'hand' => RoomPage::BUTTON_INACTIVE | RoomPage::BUTTON_ENABLED, | |||||
'chat' => RoomPage::BUTTON_INACTIVE | RoomPage::BUTTON_ENABLED, | 'chat' => RoomPage::BUTTON_INACTIVE | RoomPage::BUTTON_ENABLED, | ||||
'fullscreen' => RoomPage::BUTTON_ACTIVE | RoomPage::BUTTON_ENABLED, | 'fullscreen' => RoomPage::BUTTON_ACTIVE | RoomPage::BUTTON_ENABLED, | ||||
'security' => RoomPage::BUTTON_ACTIVE | RoomPage::BUTTON_ENABLED, | 'security' => RoomPage::BUTTON_ACTIVE | RoomPage::BUTTON_ENABLED, | ||||
'logout' => RoomPage::BUTTON_ACTIVE | RoomPage::BUTTON_ENABLED, | 'logout' => RoomPage::BUTTON_ACTIVE | RoomPage::BUTTON_ENABLED, | ||||
]); | ]); | ||||
// After the owner "opened the room" guest should be able to join | // After the owner "opened the room" guest should be able to join | ||||
// In one browser window act as a guest | // In one browser window act as a guest | ||||
Show All 14 Lines | public function testSubscribers(): void | ||||
}) | }) | ||||
->assertElementsCount('@session div.meet-video', 0) | ->assertElementsCount('@session div.meet-video', 0) | ||||
->assertElementsCount('@session video', 0) | ->assertElementsCount('@session video', 0) | ||||
->assertElementsCount('@session div.meet-subscriber', 2) | ->assertElementsCount('@session div.meet-subscriber', 2) | ||||
->assertToolbar([ | ->assertToolbar([ | ||||
'audio' => RoomPage::BUTTON_INACTIVE | RoomPage::BUTTON_DISABLED, | 'audio' => RoomPage::BUTTON_INACTIVE | RoomPage::BUTTON_DISABLED, | ||||
'video' => RoomPage::BUTTON_INACTIVE | RoomPage::BUTTON_DISABLED, | 'video' => RoomPage::BUTTON_INACTIVE | RoomPage::BUTTON_DISABLED, | ||||
'screen' => RoomPage::BUTTON_INACTIVE | RoomPage::BUTTON_DISABLED, | 'screen' => RoomPage::BUTTON_INACTIVE | RoomPage::BUTTON_DISABLED, | ||||
'hand' => RoomPage::BUTTON_INACTIVE | RoomPage::BUTTON_ENABLED, | |||||
'chat' => RoomPage::BUTTON_INACTIVE | RoomPage::BUTTON_ENABLED, | 'chat' => RoomPage::BUTTON_INACTIVE | RoomPage::BUTTON_ENABLED, | ||||
'fullscreen' => RoomPage::BUTTON_ACTIVE | RoomPage::BUTTON_ENABLED, | 'fullscreen' => RoomPage::BUTTON_ACTIVE | RoomPage::BUTTON_ENABLED, | ||||
'logout' => RoomPage::BUTTON_ACTIVE | RoomPage::BUTTON_ENABLED, | 'logout' => RoomPage::BUTTON_ACTIVE | RoomPage::BUTTON_ENABLED, | ||||
]); | ]); | ||||
// Check guest's elements in the owner's window | // Check guest's elements in the owner's window | ||||
$browser | $browser | ||||
->whenAvailable('@subscribers .meet-subscriber:not(.self)', function (Browser $browser) { | ->whenAvailable('@subscribers .meet-subscriber:not(.self)', function (Browser $browser) { | ||||
▲ Show 20 Lines • Show All 223 Lines • Show Last 20 Lines |