Files
danyang-match/tests/miniapp/matchmaker_referral_task_contract_test.py
T
WorkBuddy 3c2b967274
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
release: freeze 2026-10-15 validated release baseline
2026-10-15 09:47:31 +08:00

30 lines
1.2 KiB
Python

from pathlib import Path
import unittest
ROOT = Path(__file__).parents[2]
class MatchmakerReferralTaskContractTest(unittest.TestCase):
def test_workbench_loads_operator_referral_history(self):
source = (ROOT / "miniapp/pages/matchmaker-workbench/matchmaker-workbench.js").read_text(encoding="utf-8")
wxml = (ROOT / "miniapp/pages/matchmaker-workbench/matchmaker-workbench.wxml").read_text(encoding="utf-8")
self.assertIn("/referrals/operator/history", source)
self.assertIn("referralTasks", source)
self.assertIn("referralTasks.length", wxml)
self.assertIn("{{item.statusLabel}}", wxml)
self.assertIn("{{item.targetLabel}}", wxml)
self.assertIn("查看详情", wxml)
self.assertIn("发起转介", wxml)
self.assertIn("/referrals/activity", source)
self.assertIn("/referrals/service-station", source)
self.assertIn("/operator/matchmaker/recommendations", source)
self.assertIn("推荐进展", wxml)
self.assertNotIn("matchStore.like", source)
self.assertNotIn("matchStore.pass", source)
self.assertNotIn("emergencyContactPhone", source)
if __name__ == "__main__":
unittest.main()