diff --git a/assets/admin/components/layout/PurchaseSubscriptionSidebar.test.tsx b/assets/admin/components/layout/PurchaseSubscriptionSidebar.test.tsx index 8faf5335..97800606 100644 --- a/assets/admin/components/layout/PurchaseSubscriptionSidebar.test.tsx +++ b/assets/admin/components/layout/PurchaseSubscriptionSidebar.test.tsx @@ -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(, { route: '/admin/staff' }); + const nav = screen.getByRole('complementary', { name: 'منوی تنظیمات' }); + expect(nav.className).not.toMatch(/\bhidden\b/); + }); }); diff --git a/assets/admin/components/layout/PurchaseSubscriptionSidebar.tsx b/assets/admin/components/layout/PurchaseSubscriptionSidebar.tsx index ceea014e..e59da11a 100644 --- a/assets/admin/components/layout/PurchaseSubscriptionSidebar.tsx +++ b/assets/admin/components/layout/PurchaseSubscriptionSidebar.tsx @@ -46,8 +46,8 @@ export default function PurchaseSubscriptionSidebar({ active }: { active: string