<1.5s
规章响应
@@ -199,37 +199,6 @@
-
-
-
-
数据实证
-
- 数字见证力量 · 严谨量化成效
-
-
- 以客观业务数据指标为交付尺度,创造确定性价值。
-
-
-
-
-
diff --git a/tests/run_tests.py b/tests/run_tests.py
index 675f2cc..bae9fe4 100644
--- a/tests/run_tests.py
+++ b/tests/run_tests.py
@@ -69,7 +69,7 @@ def test_cases_page():
res.assert_true('纳海川' in mobile_html, "移动端模板必须包含品牌名【纳海川】")
res.assert_true('nhc-case-filter' in mobile_html, "移动端模板必须包含多维案例筛选器")
res.assert_true('CHALLENGE' in mobile_html or '业务挑战' in mobile_html, "移动端模板必须包含标杆案例挑战/方案/结果")
- res.assert_true('nhc-case-metrics' in mobile_html, "移动端模板必须包含数据指标墙")
+ res.assert_true('nhc-case-metrics' in mobile_html, "移动端模板必须包含标杆案例量化指标")
return res.summary()
diff --git a/tests/test_natural_copywriting.py b/tests/test_natural_copywriting.py
index 5c5b218..4b8e1f8 100644
--- a/tests/test_natural_copywriting.py
+++ b/tests/test_natural_copywriting.py
@@ -74,7 +74,6 @@ class TestNaturalCopywriting(unittest.TestCase):
self.assertIn('带着您的系统需求或技术难题,直接与架构师沟通', self.services_html, "服务页CTA必须杜绝翻译腔")
# 案例页务实表达
- self.assertIn('累计交付数据 · 用上线运行指标说话', self.cases_html, "案例页指标墙标题必须务实")
self.assertIn('面临类似的业务系统瓶颈?我们可以提供针对性方案', self.cases_html, "案例页CTA必须直面业务痛点")
# 关于我们与联系我们
@@ -85,5 +84,21 @@ class TestNaturalCopywriting(unittest.TestCase):
"""首屏Hero必须彻底移除用户指明的'50+ 国家软件著作权资产'"""
self.assertNotIn('国家软件著作权资产', self.index_html, "首屏Hero严禁包含用户要求去掉的'国家软件著作权资产'")
+ def test_user_removal_of_cases_data_wall(self):
+ """案例独立页(PC与移动端)必须彻底移除'50亿+ 交易额'等悬浮泛化数字指标墙"""
+ # PC端
+ self.assertNotIn('nhc-case-metrics-section', self.cases_html, "PC案例页必须彻底移除成果数据指标墙大板块")
+ self.assertNotIn('系统累计支撑交易额', self.cases_html, "PC案例页严禁展示浮夸的'系统累计支撑交易额'")
+ self.assertNotIn('标杆政企与行业组织', self.cases_html, "PC案例页严禁展示浮夸的'标杆政企与行业组织'")
+ self.assertNotIn('项目按期高质量交付率', self.cases_html, "PC案例页严禁展示浮夸的'项目按期高质量交付率'")
+
+ # 移动端
+ mobile_path = os.path.join(ROOT_DIR, 'addons/official/view/web/official_case_show/list_e.html')
+ with open(mobile_path, 'r', encoding='utf-8') as f:
+ mobile_html = f.read()
+ self.assertNotIn('支撑交易总额', mobile_html, "移动端案例页严禁展示'支撑交易总额'")
+ self.assertNotIn('标杆合作组织', mobile_html, "移动端案例页严禁展示'标杆合作组织'")
+ self.assertNotIn('按期交付率', mobile_html, "移动端案例页严禁展示'按期交付率'")
+
if __name__ == '__main__':
unittest.main()