Hide finance and admin KPIs from roles that lack them.
Deploy Ladill Care / deploy (push) Successful in 33s
Deploy Ladill Care / deploy (push) Successful in 33s
Doctors no longer see revenue, open bills, or org admin cards on the Care dashboard. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -81,7 +81,24 @@ class CareWebTest extends TestCase
|
||||
$this->actingAs($this->user)
|
||||
->get(route('care.dashboard'))
|
||||
->assertOk()
|
||||
->assertSee('Test Clinic');
|
||||
->assertSee('Test Clinic')
|
||||
->assertSee('Revenue today')
|
||||
->assertSee('Open bills');
|
||||
}
|
||||
|
||||
public function test_doctor_dashboard_hides_finance_metrics(): void
|
||||
{
|
||||
Member::where('user_ref', $this->user->public_id)->update(['role' => 'doctor']);
|
||||
|
||||
$this->actingAs($this->user)
|
||||
->get(route('care.dashboard'))
|
||||
->assertOk()
|
||||
->assertSee('Patients today')
|
||||
->assertSee('Appointments today')
|
||||
->assertDontSee('Revenue today')
|
||||
->assertDontSee('Open bills')
|
||||
->assertDontSee('Team members')
|
||||
->assertDontSee('Active branches');
|
||||
}
|
||||
|
||||
public function test_onboarding_creates_organization(): void
|
||||
|
||||
Reference in New Issue
Block a user