From 06023dc0370e209810d8f5784e9732d32392eae9 Mon Sep 17 00:00:00 2001 From: "@daniel-lxs" <57051444+daniel-lxs@users.noreply.github.com> Date: Fri, 16 Oct 2026 05:45:23 +0000 Subject: [PATCH] fix: expose main content on settings and analytics pages --- .../components/settings/PageNavigationShell.client.test.tsx | 4 ++++ apps/web/src/components/settings/PageNavigationShell.tsx | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/apps/web/src/components/settings/PageNavigationShell.client.test.tsx b/apps/web/src/components/settings/PageNavigationShell.client.test.tsx index 93f70d0684..18caea7ba5 100644 --- a/apps/web/src/components/settings/PageNavigationShell.client.test.tsx +++ b/apps/web/src/components/settings/PageNavigationShell.client.test.tsx @@ -74,5 +74,9 @@ describe('PageNavigationShell', () => { 'overflow-y-auto', ); expect(screen.getByText('content')).toBeInTheDocument(); + const main = screen.getByRole('main'); + expect(main).toContainElement(screen.getByRole('heading', { level: 1 })); + expect(main).toContainElement(screen.getByText('content')); + expect(main).not.toContainElement(screen.getByRole('navigation')); }); }); diff --git a/apps/web/src/components/settings/PageNavigationShell.tsx b/apps/web/src/components/settings/PageNavigationShell.tsx index a74e286c72..f0f8420798 100644 --- a/apps/web/src/components/settings/PageNavigationShell.tsx +++ b/apps/web/src/components/settings/PageNavigationShell.tsx @@ -98,7 +98,7 @@ export function PageNavigationShell({ )} -
({ > {children}
- + ); }