List org summaries with status and preview, wire sidebar navigation, and link back from the individual summary view.
This commit is contained in:
@@ -5,6 +5,7 @@ namespace Tests\Feature;
|
||||
use App\Http\Middleware\EnsurePlatformSession;
|
||||
use App\Models\Member;
|
||||
use App\Models\Organization;
|
||||
use App\Models\AiSummary;
|
||||
use App\Models\Recording;
|
||||
use App\Models\Room;
|
||||
use App\Models\Session;
|
||||
@@ -423,6 +424,38 @@ class MeetWebTest extends TestCase
|
||||
->assertSee('Recordings');
|
||||
}
|
||||
|
||||
public function test_user_can_view_summaries_index(): void
|
||||
{
|
||||
$room = $this->createRoom();
|
||||
$session = Session::create([
|
||||
'owner_ref' => $this->user->public_id,
|
||||
'room_id' => $room->id,
|
||||
'media_room_name' => 'room-'.$room->uuid,
|
||||
'status' => 'ended',
|
||||
'started_at' => now()->subHour(),
|
||||
'ended_at' => now(),
|
||||
]);
|
||||
AiSummary::create([
|
||||
'owner_ref' => $this->user->public_id,
|
||||
'session_id' => $session->id,
|
||||
'status' => 'ready',
|
||||
'summary' => 'We agreed to ship the dashboard on Friday.',
|
||||
'decisions' => ['Ship Friday'],
|
||||
]);
|
||||
|
||||
$this->actingAs($this->user)
|
||||
->get('/summaries')
|
||||
->assertOk()
|
||||
->assertSee('AI Summaries')
|
||||
->assertSee($room->title)
|
||||
->assertSee('We agreed to ship the dashboard on Friday.');
|
||||
|
||||
$this->actingAs($this->user)
|
||||
->get('/summaries/')
|
||||
->assertOk()
|
||||
->assertSee('AI Summaries');
|
||||
}
|
||||
|
||||
public function test_admin_can_update_security_policy(): void
|
||||
{
|
||||
$this->actingAs($this->user)
|
||||
|
||||
Reference in New Issue
Block a user