Changeset View
Changeset View
Standalone View
Standalone View
src/tests/Browser/Meet/RoomSetupTest.php
Show First 20 Lines • Show All 50 Lines • ▼ Show 20 Lines | public function testRoomNonExistingRoom(): void | ||||
$browser->assertMissing('@toolbar') | $browser->assertMissing('@toolbar') | ||||
->assertMissing('@menu') | ->assertMissing('@menu') | ||||
->assertMissing('@session') | ->assertMissing('@session') | ||||
->assertMissing('@chat') | ->assertMissing('@chat') | ||||
->assertMissing('@login-form') | ->assertMissing('@login-form') | ||||
->assertVisible('@setup-form') | ->assertVisible('@setup-form') | ||||
->assertSeeIn('@setup-status-message', "The room does not exist.") | ->assertSeeIn('@setup-status-message', "The room does not exist.") | ||||
->assertVisible('@setup-button[disabled]'); | ->assertButtonDisabled('@setup-button'); | ||||
}); | }); | ||||
} | } | ||||
/** | /** | ||||
* Test the room setup page | * Test the room setup page | ||||
* | * | ||||
* @group openvidu | * @group openvidu | ||||
*/ | */ | ||||
▲ Show 20 Lines • Show All 93 Lines • ▼ Show 20 Lines | public function testTwoUsersInARoom(): void | ||||
->submitLogon('john@kolab.org', 'simple123') | ->submitLogon('john@kolab.org', 'simple123') | ||||
->waitFor('@setup-form') | ->waitFor('@setup-form') | ||||
->assertMissing('@login-form') | ->assertMissing('@login-form') | ||||
->waitUntilMissing('@setup-status-message.loading') | ->waitUntilMissing('@setup-status-message.loading') | ||||
->waitFor('@setup-status-message') | ->waitFor('@setup-status-message') | ||||
->assertSeeIn('@setup-status-message', "The room is closed. It will be open for others after you join.") | ->assertSeeIn('@setup-status-message', "The room is closed. It will be open for others after you join.") | ||||
->assertSeeIn('@setup-button', "JOIN") | ->assertSeeIn('@setup-button', "JOIN") | ||||
->type('@setup-nickname-input', 'john') | ->type('@setup-nickname-input', 'john') | ||||
// Join the room | // Join the room (click the button twice, to make sure it does not | ||||
// produce redundant participants/subscribers in the room) | |||||
->click('@setup-button') | |||||
->pause(10) | |||||
->click('@setup-button') | ->click('@setup-button') | ||||
->waitFor('@session') | ->waitFor('@session') | ||||
->assertMissing('@setup-form') | ->assertMissing('@setup-form') | ||||
->whenAvailable('div.meet-video.self', function (Browser $browser) { | ->whenAvailable('div.meet-video.self', function (Browser $browser) { | ||||
$browser->assertVisible('video') | $browser->assertVisible('video') | ||||
->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 193 Lines • Show Last 20 Lines |