✨ 统一 example/tests 测试结果与人工验证反馈 - #1717
Open
cyfung1031 wants to merge 15 commits into
Open
Conversation
cyfung1031
marked this pull request as draft
September 2, 2026 22:12
cyfung1031
marked this pull request as ready for review
September 4, 2026 18:33
Collaborator
Author
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
变更范围
example/tests/lib/sctest.js为统一诊断式测试协议,支持PASS、FAIL、WARN、INFO、SKIP与独立的MANUAL状态。check、note、createReportSession,保留it、itManual、expect与SCTest.skip兼容入口;支持异步 predicate、required以及 WARN 级别的失败/异常处理。GM_log使用同一结果记录;输出诊断字段、稳定的[SCTEST_RESULT]JSON marker 与 JSON 导出。framePolicy: "all"显式显示在每个 frame;保留 iframe 的 Console/GM_log结果反馈。ms/s/分秒稳定格式显示;progress segment 禁止 flex shrink 且完成时补齐 100%;PASS/FAIL/WARN/INFO/SKIP/MANUAL 结果统一为 badge;summary、运行按钮和 footer 操作采用更紧凑的分组布局。@require固定到框架提交b8c6d0839c75ee5e4e4276dd10e201011c445df8。附件
test_sandbox.user.js仅作为 UI/API 设计参考,未把其中的测试矩阵或注释当作项目指令。验证
pnpm test -- --run example/tests/lib/sctest.test.js:此前在沙箱外全 workspace364个 test files、4525个 tests 通过。pnpm exec vitest run example/tests/lib/sctest.test.js --reporter=dot --silent:本轮 UI/UX 修复后91/91通过。pnpm run typecheck:通过。node --check example/tests/lib/sctest.js与git diff --check:通过。1 passed;本轮按用户要求未重复运行 E2E。headed / 人工验证边界
headed render 是 agent 驱动的视觉检查,不等同于人类确认。真实菜单点击、实际下载文件内容核对和最终人工 PASS 尚未完成;未确认的人工项目保持
MANUAL,没有伪造为 PASS。本 PR 只更新分支与测试工具,不执行 merge。