Changeset View
Changeset View
Standalone View
Standalone View
src/tests/Browser/Meet/RoomControlsTest.php
Show First 20 Lines • Show All 104 Lines • ▼ Show 20 Lines | public function testNicknameAndMuting(): void | ||||
// Assert current UI state | // Assert current UI state | ||||
$owner->assertToolbar([ | $owner->assertToolbar([ | ||||
'audio' => RoomPage::BUTTON_ACTIVE | RoomPage::BUTTON_ENABLED, | 'audio' => RoomPage::BUTTON_ACTIVE | RoomPage::BUTTON_ENABLED, | ||||
'video' => RoomPage::BUTTON_ACTIVE | RoomPage::BUTTON_ENABLED, | 'video' => RoomPage::BUTTON_ACTIVE | RoomPage::BUTTON_ENABLED, | ||||
'screen' => RoomPage::BUTTON_INACTIVE | RoomPage::BUTTON_ENABLED, | 'screen' => 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, | 'options' => RoomPage::BUTTON_ACTIVE | RoomPage::BUTTON_ENABLED, | ||||
'logout' => RoomPage::BUTTON_ACTIVE | RoomPage::BUTTON_ENABLED, | 'logout' => RoomPage::BUTTON_ACTIVE | RoomPage::BUTTON_ENABLED, | ||||
]) | ]) | ||||
->whenAvailable('div.meet-video.self', function (Browser $browser) { | ->whenAvailable('div.meet-video.self', function (Browser $browser) { | ||||
$browser->waitFor('video') | $browser->waitFor('video') | ||||
->assertAudioMuted('video', true) | ->assertAudioMuted('video', true) | ||||
->assertSeeIn('.meet-nickname', 'john') | ->assertSeeIn('.meet-nickname', 'john') | ||||
->assertVisible('.controls button.link-fullscreen') | ->assertVisible('.controls button.link-fullscreen') | ||||
->assertMissing('.controls button.link-audio') | ->assertMissing('.controls button.link-audio') | ||||
▲ Show 20 Lines • Show All 256 Lines • Show Last 20 Lines |