The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.
TypeScript budget-trackercollaborativedockeritinerarymcp-serveroffline-firstopen-sourceopenstreetmappacking-listpwareal-timeself-hostedselfhostedtraveltravel-apptravel-journaltravel-plannertripitwanderlog
fix(system-notices): fix FE-SN-BANNER-004 to reflect highest-priority-first array order
jubnl5e8602c50ad1
diff --git a/client/src/components/SystemNotices/SystemNoticeBanner.test.tsx b/client/src/components/SystemNotices/SystemNoticeBanner.test.tsxindex c893a698d..3e6128f4f 100644--- a/client/src/components/SystemNotices/SystemNoticeBanner.test.tsx+++ b/client/src/components/SystemNotices/SystemNoticeBanner.test.tsx@@ -72,17 +72,18 @@ describe('BannerRenderer', () => {expect(screen.getByText('Second notice')).toBeTruthy();});- it('FE-SN-BANNER-004: third banner is not rendered (only last 2 shown)', async () => {- const n1 = makeBanner({ id: 'banner-1', titleKey: 'Oldest notice' });+ it('FE-SN-BANNER-004: third banner is not rendered (only top 2 shown)', async () => {+ // Server returns notices highest-priority first; BannerRenderer takes slice(0,2)+ const n1 = makeBanner({ id: 'banner-1', titleKey: 'Highest notice' });const n2 = makeBanner({ id: 'banner-2', titleKey: 'Second notice' });- const n3 = makeBanner({ id: 'banner-3', titleKey: 'Newest notice' });+ const n3 = makeBanner({ id: 'banner-3', titleKey: 'Lowest notice' });await act(async () => {render(<BannerRenderer notices={[n1, n2, n3]} />);});- expect(screen.queryByText('Oldest notice')).toBeNull();+ expect(screen.getByText('Highest notice')).toBeTruthy();expect(screen.getByText('Second notice')).toBeTruthy();- expect(screen.getByText('Newest notice')).toBeTruthy();+ expect(screen.queryByText('Lowest notice')).toBeNull();});it('FE-SN-BANNER-005: critical banner has aria-live="assertive"', async () => {