Add patient SMS/email messaging and fix Meet video visit errors.
Deploy Ladill Care / deploy (push) Successful in 43s
Deploy Ladill Care / deploy (push) Successful in 43s
Wire Care to Ladill SMS and Bird management APIs on the patient page, and surface Meet auth/config failures as friendly validation errors instead of a 502 page. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -131,6 +131,24 @@ class CareAppointmentMeetTest extends TestCase
|
||||
$this->assertSame('room-uuid-2', $appointment->meet_room_uuid);
|
||||
}
|
||||
|
||||
public function test_schedule_meet_shows_friendly_error_when_unauthorized(): void
|
||||
{
|
||||
Http::fake([
|
||||
'meet.test/*' => Http::response(['error' => 'Unauthorized.'], 401),
|
||||
]);
|
||||
|
||||
$appointment = $this->createAppointment();
|
||||
|
||||
$this->actingAs($this->user)
|
||||
->from(route('care.appointments.show', $appointment))
|
||||
->post(route('care.appointments.schedule-meet', $appointment))
|
||||
->assertRedirect(route('care.appointments.show', $appointment))
|
||||
->assertSessionHasErrors('meet');
|
||||
|
||||
$appointment->refresh();
|
||||
$this->assertNull($appointment->meet_room_uuid);
|
||||
}
|
||||
|
||||
protected function createAppointment(string $status = Appointment::STATUS_SCHEDULED): Appointment
|
||||
{
|
||||
return Appointment::create([
|
||||
|
||||
Reference in New Issue
Block a user