Redirect cashiers from legacy service queues to Billing.
Deploy Ladill Care / deploy (push) Successful in 48s
Deploy Ladill Care / deploy (push) Successful in 48s
Doctor-only Queue left non-doctors landing on Appointments, which cashiers (and pharmacists/lab techs) cannot open — restore role-natural list routes. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -90,6 +90,24 @@ class CareNaturalQueueTest extends TestCase
|
||||
->assertRedirect(route('care.queue.index'));
|
||||
}
|
||||
|
||||
public function test_service_queues_redirect_cashiers_to_billing_not_appointments(): void
|
||||
{
|
||||
Member::query()->where('user_ref', $this->owner->public_id)->update(['role' => 'cashier']);
|
||||
|
||||
$this->actingAs($this->owner)
|
||||
->get(route('care.service-queues.index'))
|
||||
->assertRedirect(route('care.bills.index'));
|
||||
}
|
||||
|
||||
public function test_service_queues_redirect_pharmacists_to_pharmacy_queue(): void
|
||||
{
|
||||
Member::query()->where('user_ref', $this->owner->public_id)->update(['role' => 'pharmacist']);
|
||||
|
||||
$this->actingAs($this->owner)
|
||||
->get(route('care.service-queues.index'))
|
||||
->assertRedirect(route('care.prescriptions.queue'));
|
||||
}
|
||||
|
||||
public function test_clinical_queue_shows_inline_ops_not_service_counter(): void
|
||||
{
|
||||
Member::query()->where('user_ref', $this->owner->public_id)->update(['role' => 'doctor']);
|
||||
|
||||
Reference in New Issue
Block a user