From 3fc259fa9b83d66183f3de7a4b78ffd8ef31e5dd Mon Sep 17 00:00:00 2001 From: ssw Date: Fri, 26 Jun 2026 12:56:24 +0800 Subject: [PATCH] =?UTF-8?q?v0.11+=20Phase=20C:=20=E6=8A=B9=E5=8E=BB=20BS-5?= =?UTF-8?q?2=20=E6=B4=BB=E8=B7=83=E4=BB=A3=E7=A0=81=E6=AE=8B=E7=95=99=20(t?= =?UTF-8?q?est/generate.ts=20+=20test/run.ts)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - test/generate.ts L205: 错误信息 'BS-52 FAIL' → '浏览器层 4 铁律 #1' - test/run.ts L315: 'BS-52 按钮 + 截图' → '新增按钮 + 4 铁律' 注: _buildformdata.ts + test/index.ts 仍含 BS-52 引用, 但在 deprecation note / 历史注释段 (说明删除原因), 按 verification plan 第 3 条 '历史文档不动' 规则保留. Co-Authored-By: Claude --- src/commands/test/generate.ts | 2 +- src/commands/test/run.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commands/test/generate.ts b/src/commands/test/generate.ts index d61b87e..0901d64 100644 --- a/src/commands/test/generate.ts +++ b/src/commands/test/generate.ts @@ -202,7 +202,7 @@ INITIAL=\$(playwright -s=\$SESSION eval "() => document.querySelectorAll('.vxe-b # 5. 点击新增 playwright -s=\$SESSION eval "async () => { const btn = page.locator('button:has-text(\\"新增\\")').first(); - if (await btn.count() === 0) throw new Error('新增按钮未找到 (BS-52 FAIL)'); + if (await btn.count() === 0) throw new Error('新增按钮未找到 (浏览器层 4 铁律 #1: 列表页必含新增按钮)'); await btn.click(); await page.waitForSelector('.ant-modal', { timeout: 5000 }); }" diff --git a/src/commands/test/run.ts b/src/commands/test/run.ts index 695e89e..73d9c36 100644 --- a/src/commands/test/run.ts +++ b/src/commands/test/run.ts @@ -312,6 +312,6 @@ function renderMarkdownReport(r: { formId: string; totalSteps: number; pass: num lines.push(`- exit 0 (PASS): ${r.pass}/${r.totalSteps}`) lines.push(`- exit 1 (FAIL): ${r.fail} 个失败`) lines.push('') - lines.push(`> 浏览器层验证 (BS-52 按钮 + 截图 + UI 渲染) 需用 ssw-e2e-test 单独跑. \`dacli testcase\` 仅验证 API 层.`) + lines.push(`> 浏览器层验证 (新增按钮 + 截图 + UI 渲染 + 4 铁律) 需用 ssw-e2e-test 单独跑. \`dacli testcase\` 仅验证 API 层.`) return lines.join('\n') } \ No newline at end of file