fix(homepage-buttons): 全面审查并纠正首页所有按钮跳转链路,支持平滑滚动与锚点防遮挡

这个提交包含在:
wikiboss
2026-10-08 18:36:05 +08:00
父节点 758c1bbbdb
当前提交 e8c5345539
共有 7 个文件被更改,包括 304 次插入 和 13 次删除

查看文件

@@ -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)