From 6187ec69df2c9921a96bf5e10ac5d1c3d687e589 Mon Sep 17 00:00:00 2001 From: WorkBuddy Date: Fri, 9 Oct 2026 22:46:32 +0800 Subject: [PATCH] =?UTF-8?q?test(ui-guards):=20=E5=AF=BC=E8=88=AA=E5=A5=91?= =?UTF-8?q?=E7=BA=A6=E5=AE=88=E5=8D=AB=E5=9F=BA=E7=BA=BF=E5=AF=B9=E9=BD=90?= =?UTF-8?q?=E5=90=8E=E7=AB=AF=E7=9C=9F=E5=AE=9E=E6=9D=83=E9=99=90=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - admin-role-navigation-contracts.mjs L40-41 原断言 referral.manage / matchmaker.service.view,但后端 permissions 表不存在这两个幽灵码—— v1.1.1 权限码对齐(4edb761)时漏更新守卫基线,导致该守卫自 v1.1.1 起恒红 - 修正为后端真实 authority 码:/referral→matchmaker.service、 /matchmaker→matchmaker.view(守卫内容修正,非删守卫,MIN_GUARDS 不变) - 实测 UI 契约 24/24 全绿 --- ui-tests/admin-role-navigation-contracts.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui-tests/admin-role-navigation-contracts.mjs b/ui-tests/admin-role-navigation-contracts.mjs index 7572df0..8a825a2 100644 --- a/ui-tests/admin-role-navigation-contracts.mjs +++ b/ui-tests/admin-role-navigation-contracts.mjs @@ -37,8 +37,8 @@ const requiredMenuEntries = [ ['/activities', 'activity.view'], ['/activities/checkin', 'activity.checkin'], ['/activities/interests', 'activity.review_registration'], - ['/referral', 'referral.manage'], - ['/matchmaker', 'matchmaker.service.view'], + ['/referral', 'matchmaker.service'], + ['/matchmaker', 'matchmaker.view'], ['/counseling', 'counseling.service.view'], ['/banner', 'banner.view'], ['/content', 'content.view'],