test: add a bypass wrapper for the UI smoke script

Windows PowerShell with an AllSigned policy refuses unsigned .ps1 files.
ui-smoke.cmd runs ui-smoke.ps1 with a process-scoped -ExecutionPolicy Bypass
(no system policy change) and keeps the window open when double-clicked.
This commit is contained in:
2026-11-04 17:12:32 +08:00
parent 590a9a016c
commit 2fc3f740ca
3 changed files with 17 additions and 4 deletions

View File

@@ -18,7 +18,7 @@
| `scripts/build.ps1` | 开发构建(cargo test + build --release + 校验) |
| `scripts/publish.ps1` | 用户手动发布到 Nutstore(Medium) |
| `tests/smoke.ps1` | cargo test + 关联检查 + 可选隔离启动 |
| `tests/ui-smoke.ps1` + `ui-smoke.mjs` | 发布前 UI 冒烟:CDP 断言页面渲染、截图、JSON 报告(需普通桌面 PowerShell + Node 21+) |
| `tests/ui-smoke.cmd` / `ui-smoke.ps1` + `ui-smoke.mjs` | 发布前 UI 冒烟:CDP 断言页面渲染、截图、JSON 报告(需普通桌面 PowerShell + Node 21+;`.cmd` 内部用 Bypass,适合 AllSigned 策略) |
| `tests/fixtures/` | 手工/冒烟用 Markdown 样例 |
| `reports/` | 验证记录(文本;截图放 `agent/tmp/`,不入库) |
| `notes/` | 草稿 |