feat: redesign insurance pricing page with tabbed navigation for basic and supplementary insurance, expandable rows for contract details, and move free visit price card to appointment settings

This commit is contained in:
hamed
2026-07-15 14:55:16 +03:30
parent 3e5dee0ad5
commit 9f75aeedf5
8 changed files with 495 additions and 96 deletions
@@ -31,4 +31,16 @@ describe('AppointmentSettingsPage', () => {
expect((await screen.findAllByText('مدیریت نوبت دهی')).length).toBeGreaterThan(1);
expect(screen.getByText('خرید اشتراک')).toBeInTheDocument(); // shell menu
});
it('renders the free-visit price card (moved here from insurance page)', async () => {
renderWithProviders(<AppointmentSettingsPage />, { route: '/admin/appointment-settings' });
expect(await screen.findByText('قیمت ویزیت آزاد')).toBeInTheDocument();
});
it('shows the free-visit price card even when no doctor uuid is present', async () => {
useAuthStore.setState({ primaryRole: 'clinic', doctorUuid: null, dbUuid: null });
renderWithProviders(<AppointmentSettingsPage />, { route: '/admin/appointment-settings' });
expect(await screen.findByText('قیمت ویزیت آزاد')).toBeInTheDocument();
expect(screen.getByText('این بخش فقط برای پزشک در دسترس است.')).toBeInTheDocument();
});
});