This commit is contained in:
2026-08-12 18:50:03 +08:00
parent 41a131a33b
commit 2c5f53ec00
29 changed files with 513 additions and 283 deletions
+13
View File
@@ -89,6 +89,19 @@ describe('admin router access metadata', () => {
expect(route?.meta.permission).toBe('platform:download:list')
})
it('registers message-center routes with the frozen IAM permissions', () => {
const expected = [
['notification-messages', '/notifications/messages', 'platform:notification:task:list'],
['notification-templates', '/notifications/templates', 'platform:notification:template:list'],
['my-notifications', '/notifications/mine', 'platform:notification:view'],
]
for (const [name, path, permission] of expected) {
const route = router.getRoutes().find((item) => item.name === name)
expect(route?.path).toBe(path)
expect(route?.meta.permission).toBe(permission)
}
})
it('redirects the removed enterprise review route to the protected customer list', () => {
const route = router.getRoutes().find((item) => item.name === 'enterprise-reviews')