This commit is contained in:
2026-08-12 17:45:49 +08:00
parent 5b441626e9
commit 2a889a7d91
25 changed files with 154 additions and 29 deletions
+3 -2
View File
@@ -121,9 +121,10 @@ describe('adminNavigation', () => {
it('shows the five formal finance pages with their real backend permissions', () => {
const filtered = filterAdminNavigation(adminNavigation, new Set([
'platform:finance:account:view',
'platform:finance:bill:view',
'platform:finance:receipt:view',
'platform:finance:cost:view',
'platform:finance:settlement-ar:view',
'platform:finance:settlement-ap:view',
]))
expect(getNavigationLeaves(filtered).map((item) => item.path).filter((path) => path.startsWith('/finance/'))).toEqual([