Limit audio rooms to Twitter Spaces features and fix live toolbar UX.
Deploy Ladill Meet / deploy (push) Successful in 1m3s
Deploy Ladill Meet / deploy (push) Successful in 1m3s
Block breakouts, chat, Q&A, and other meeting-only tools in spaces, hide video controls for audio-only rooms, and stabilize mobile nav and toolbar layout. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace Tests\Unit;
|
||||
|
||||
use App\Models\Room;
|
||||
use App\Services\Meet\SpaceService;
|
||||
use Tests\TestCase;
|
||||
|
||||
class SpaceServiceTest extends TestCase
|
||||
{
|
||||
public function test_space_rooms_disallow_meeting_only_features(): void
|
||||
{
|
||||
$service = app(SpaceService::class);
|
||||
$space = new Room(['type' => 'space']);
|
||||
$meeting = new Room(['type' => 'meeting']);
|
||||
|
||||
foreach (['breakouts', 'chat', 'qa', 'polls', 'files', 'whiteboard', 'programme', 'live_stream', 'lock'] as $feature) {
|
||||
$this->assertFalse($service->allowsRoomFeature($space, $feature), $feature);
|
||||
$this->assertTrue($service->allowsRoomFeature($meeting, $feature), $feature);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user