docs: plan review nits — preview-based test reads, spec R3.1 revision chain
Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
@@ -208,11 +208,8 @@ def test_trade_pro_registered_and_compatible():
|
||||
def test_trade_pro_builds_real_site(tmp_path):
|
||||
# 复用 tests/test_theme_pro_v3.py 中"建站→切主题→构建→断言预览页"的既有写法
|
||||
# (夹具工厂在 tests/test_factory_v2.py:15-30),theme 用 'trade-pro'。
|
||||
# 真实断言(不允许空壳):
|
||||
# 1. 构建成功且生成 index.html
|
||||
# 2. 输出包含 lang="en"
|
||||
# 3. 不包含平台中文默认导航文案"首页"
|
||||
html = (tmp_path / 'index.html').read_text(encoding='utf-8') # 按夹具实际构建目录
|
||||
# 产物读取走夹具的 HTTP 形式(与 v3 一致):
|
||||
html = factory.get(f'/preview/{sid}/{bid}/').text
|
||||
assert 'lang="en"' in html
|
||||
assert '>首页<' not in html
|
||||
```
|
||||
@@ -294,10 +291,10 @@ def test_frontend_entries_include_trade_pro():
|
||||
]:
|
||||
assert needle in (base / rel).read_text(encoding='utf-8'), rel
|
||||
|
||||
def test_theme_color_map_covers_trade_pro(tmp_path):
|
||||
def test_theme_color_map_covers_trade_pro():
|
||||
# 真实断言:trade-pro 构建出的首页含 meta theme-color #0b3d91
|
||||
# (复用 Task 5 的构建夹具写法)
|
||||
html = (tmp_path / 'index.html').read_text(encoding='utf-8')
|
||||
# (复用 Task 5 的构建夹具与 /preview/ HTTP 读取写法)
|
||||
html = factory.get(f'/preview/{sid}/{bid}/').text
|
||||
assert '<meta name="theme-color" content="#0b3d91"' in html
|
||||
```
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# trade-pro 第 5 主题移植设计(V8_10 主线)— 修订版 R3
|
||||
|
||||
日期:2026-10-22 | 状态:评审通过(R2 复审后小幅修订)| 目标版本:SiteForge Enterprise V8.10.0-dev.1
|
||||
修订记录:R1 评审"需修订后通过"(13 项发现已吸收)→ R2 复审"小幅修订后通过"(补第 6 处前端入口、行号 187、显式/默认值判定机制)→ R3 为终版。
|
||||
修订记录:R1 评审"需修订后通过"(13 项发现已吸收)→ R2 复审"小幅修订后通过"(补第 6 处前端入口、行号 187、显式/默认值判定机制)→ R3 终版 → **R3.1** 更正图标前提(cms 源 0 SVG,图标为新增设计)。
|
||||
|
||||
## 1. 背景与目标
|
||||
|
||||
|
||||
Reference in New Issue
Block a user