feat: update PurchaseSubscriptionSidebar for mobile visibility and styling adjustments
This commit is contained in:
@@ -19,4 +19,12 @@ describe('PurchaseSubscriptionSidebar — settings menu', () => {
|
||||
expect(screen.getByRole('link', { name: 'پرسنل' })).toHaveAttribute('aria-current', 'page');
|
||||
expect(screen.getByRole('link', { name: 'مدیریت منشی' })).not.toHaveAttribute('aria-current');
|
||||
});
|
||||
|
||||
// regression: the settings menu must stay visible on mobile (was `hidden lg:block`,
|
||||
// which dropped the whole menu below the lg breakpoint → no settings nav on phones).
|
||||
it('is not hidden on mobile', () => {
|
||||
renderWithProviders(<PurchaseSubscriptionSidebar active="staff" />, { route: '/admin/staff' });
|
||||
const nav = screen.getByRole('complementary', { name: 'منوی تنظیمات' });
|
||||
expect(nav.className).not.toMatch(/\bhidden\b/);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user