release: freeze 2026-10-15 validated release baseline
CI/CD Pipeline / UI Contracts (source-structure gates) (push) Canceled after 0s
CI/CD Pipeline / E2E (live stack) (push) Canceled after 0s
CI/CD Pipeline / Backend Build & Test (push) Canceled after 0s
CI/CD Pipeline / Admin Web Build (push) Canceled after 0s
CI/CD Pipeline / Mini Program Compile Check (push) Canceled after 0s
CI/CD Pipeline / Migration Validation (push) Canceled after 0s
CI/CD Pipeline / Test Shell Guard (Phase 23 Gate) (push) Canceled after 0s

This commit is contained in:
WorkBuddy
2026-10-15 09:47:31 +08:00
parent 827c23db1d
commit 3c2b967274
149 changed files with 4324 additions and 348 deletions
@@ -0,0 +1,24 @@
from pathlib import Path
import unittest
ROOT = Path(__file__).parents[2]
class MatchmakerEntryContractTest(unittest.TestCase):
def test_user_login_exposes_staff_entry(self):
source = (ROOT / "miniapp/pages/login/login.wxml").read_text(encoding="utf-8")
script = (ROOT / "miniapp/pages/login/login.ts").read_text(encoding="utf-8")
self.assertIn("红娘工作人员入口", source)
self.assertIn("onOperatorEntry", source)
self.assertIn("ROUTE.OPERATOR.LOGIN", script)
def test_app_routes_existing_operator_session_to_workbench(self):
source = (ROOT / "miniapp/app.js").read_text(encoding="utf-8")
self.assertIn("operatorToken", source)
self.assertIn("matchmaker-workbench", source)
self.assertIn("stores.bootstrap()", source)
if __name__ == "__main__":
unittest.main()