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:
@@ -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();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user