Files
jiapuapp/.superpowers/sdd/task-3-brief.md
T
rain a127280ce6 1
2026-07-21 21:02:57 +08:00

1.7 KiB
Raw Blame History

Task 3: 自动回归公共页头消费者与响应式边界

Files:

  • Verify: components/PageHeader.vue
  • Verify: pages/genealogy/g03-create-genealogy.vue
  • Verify: pages/genealogy/g06-search-genealogies.vue
  • Verify: pages/genealogy/g01-my-genealogies.vue

Interfaces:

  • Consumes: Task 1 与 Task 2 的公共页头合同。

  • Produces: 公共组件、G03、G06 与 G01 无静态合同回退的验证记录。

  • Step 1: 运行全部聚焦合同

Run:

$tests = @(
  'tests/shared-component-document-flow-contract.ps1',
  'tests/shared-interaction-accessibility-contract.ps1',
  'tests/g03-visual-states-contract.ps1',
  'tests/g03-create-flow-contract.ps1',
  'tests/g03-document-flow-contract.ps1',
  'tests/g06-search-flow-contract.ps1',
  'tests/g06-document-flow-contract.ps1',
  'tests/g01-visual-contract.ps1'
)
foreach ($test in $tests) { & powershell -ExecutionPolicy Bypass -File $test }

Expected: 八项均输出各自 PASSPowerShell 退出码为 0。

  • Step 2: 运行现有 H5 逻辑和宽度辅助检查

在本地 H5 服务已运行时执行:

node tests/g03-create-flow-runtime-smoke.js http://localhost:5173
node tests/g06-search-flow-runtime-smoke.js http://localhost:5173

Expected: 分别输出 G03-CREATE-FLOW-RUNTIME-SMOKE PASSG06-SEARCH-FLOW-RUNTIME-SMOKE PASS320、360、412px 视口无横向溢出。若本地服务端口不同,只替换 URL,不改变测试内容。

  • Step 3: 检查最终差异

Run:

git diff --check
git status --short

Expected: git diff --check 退出码为 0;工作区只允许存在本计划明确列出的验证证据或尚未提交的计划文件。