fix(homepage-buttons): 全面审查并纠正首页所有按钮跳转链路,支持平滑滚动与锚点防遮挡
这个提交包含在:
@@ -252,6 +252,15 @@ def test_natural_copywriting_suite():
|
||||
res.assert_true(test_result.wasSuccessful(), f"务实工程文案断言全部通过 (共 {test_result.testsRun} 项)")
|
||||
return res.summary()
|
||||
|
||||
def test_homepage_button_links_suite():
|
||||
res = TestResult("首页按钮跳转与链路专项测试 (HomepageButtonLinks)")
|
||||
from tests.test_homepage_button_links import HomepageButtonLinksTest
|
||||
suite = unittest.TestLoader().loadTestsFromTestCase(HomepageButtonLinksTest)
|
||||
runner = unittest.TextTestRunner(verbosity=0)
|
||||
test_result = runner.run(suite)
|
||||
res.assert_true(test_result.wasSuccessful(), f"首页所有按钮点击与跳转断言全部通过 (共 {test_result.testsRun} 项)")
|
||||
return res.summary()
|
||||
|
||||
def main():
|
||||
import unittest
|
||||
results = [
|
||||
@@ -264,7 +273,8 @@ def main():
|
||||
test_no_ai_flavor_suite(),
|
||||
test_client_rigor_suite(),
|
||||
test_ad_law_compliance_suite(),
|
||||
test_natural_copywriting_suite()
|
||||
test_natural_copywriting_suite(),
|
||||
test_homepage_button_links_suite()
|
||||
]
|
||||
sys.exit(0 if all(results) else 1)
|
||||
|
||||
|
||||
在新工单中引用
屏蔽一个用户