Allow adding conference speakers after creation on details page.
Deploy Ladill Meet / deploy (push) Successful in 35s
Deploy Ladill Meet / deploy (push) Successful in 35s
Hosts can assign team speakers and invite panelists by email from the conference show page, with presenter refs synced to live sessions. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -723,6 +723,55 @@ class MeetWebTest extends TestCase
|
||||
->assertSee('NextGen Summit');
|
||||
}
|
||||
|
||||
public function test_host_can_add_speakers_after_conference_created(): void
|
||||
{
|
||||
$speaker = User::create([
|
||||
'public_id' => 'speaker-user-001',
|
||||
'name' => 'Keynote Speaker',
|
||||
'email' => 'speaker@example.com',
|
||||
]);
|
||||
|
||||
Member::create([
|
||||
'owner_ref' => $this->user->public_id,
|
||||
'organization_id' => $this->organization->id,
|
||||
'user_ref' => $speaker->public_id,
|
||||
'role' => 'member',
|
||||
]);
|
||||
|
||||
$room = Room::create([
|
||||
'owner_ref' => $this->user->public_id,
|
||||
'organization_id' => $this->organization->id,
|
||||
'host_user_ref' => $this->user->public_id,
|
||||
'title' => 'Product launch',
|
||||
'type' => 'town_hall',
|
||||
'status' => 'scheduled',
|
||||
'scheduled_at' => now()->addDay(),
|
||||
'timezone' => 'UTC',
|
||||
'settings' => array_merge(config('meet.default_settings'), [
|
||||
'green_room' => true,
|
||||
'stage_mode' => true,
|
||||
'presenter_refs' => [],
|
||||
]),
|
||||
]);
|
||||
|
||||
$this->actingAs($this->user)
|
||||
->post(route('meet.conferences.speakers.update', $room), [
|
||||
'presenter_refs' => [$speaker->public_id],
|
||||
'invite_emails' => 'guest-speaker@example.com',
|
||||
])
|
||||
->assertRedirect(route('meet.conferences.show', $room))
|
||||
->assertSessionHas('success');
|
||||
|
||||
$room->refresh();
|
||||
$this->assertContains($speaker->public_id, $room->setting('presenter_refs'));
|
||||
|
||||
$this->assertDatabaseHas('meet_invitations', [
|
||||
'room_id' => $room->id,
|
||||
'email' => 'guest-speaker@example.com',
|
||||
'role' => 'panelist',
|
||||
]);
|
||||
}
|
||||
|
||||
public function test_host_can_create_space_room(): void
|
||||
{
|
||||
$this->actingAs($this->user)
|
||||
|
||||
Reference in New Issue
Block a user