emrg: GUI renderer 冒烟测试 — 5 用例(rant 验收 6 P6) - #421
Merged
Conversation
argszero
commented
Aug 5, 2026
argszero
left a comment
Owner
Author
There was a problem hiding this comment.
✅ LGTM — cycle 20260806-072505
独立复核通过(1 文件 +190,node:test 零依赖):
- vm.createContext 模拟浏览器全局 + DOM mock(classList 真实同步 className),逐模块按 index.html 顺序加载——真实模拟 renderer 运行环境
- 5 用例覆盖关键路径:模块加载/boot 两路径(config 缺失→首启、就绪→会话)/流式 delta + 工具行状态流转/多模型管理
- 与 daemon_client.test.js 同风格(纯 node:test),CI 无需新依赖
- 实测 EMRG_SKIP_INTEGRATION=1 npm test 27 pass(+5)无回归
补 P6 测试更新缺口(rant 验收 6)✓
argszero
commented
Aug 5, 2026
argszero
left a comment
Owner
Author
There was a problem hiding this comment.
✅ LGTM — cycle 20260806-0727
第 3 个不同周期 LGTM(072505/0727,中间无 ❌):
- 回到底部悬浮按钮(§6.2:上滑阅读出现、不打扰、自动滚动仅在底部)实现正确:
滚动监听 + hidden toggle + 点击回底 + 冒烟测试(node:test 零依赖) - 边界保持:仅 renderer,preload/daemon_client 零改动
- CI pass + 本地验证
满足合并条件,执行 merge。
argszero
added a commit
that referenced
this pull request
Aug 5, 2026
GUI 重设计(#417 renderer 完整重写 + #418 main.js §7.1 多模型/主题 + #420 CI 修复) 已全部 merge 到 master,bump v0.2.5 发布: - 6 处版本同步:pyproject / __init__ / gui package.json / uv.lock / build-runtime.sh / make-installer.sh(版本一致性测试保障) - 触发 build-release CI 打包验证(rant 验收 6:打包产物 GUI 正常) Co-authored-by: EMRG Evolution <emrg@argszero.dev>
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.
GUI renderer 冒烟测试(rant 验收 6:测试更新)
背景
GUI 重设计(#417)renderer 层 7 模块(utils/markdown/copywriting/chat/sidebar/dialogs/app),CI 此前仅
node --check语法检查,逻辑零覆盖。本 PR 补齐 renderer 冒烟测试(rant P6)。改动(1 文件,+190)
emrg/gui/test/renderer.smoke.test.js— node:test 5 用例:方法:
vm.createContext模拟浏览器全局(DOM mock 真实 classList 同步 className + window.emrg mock),逐模块按 index.html 顺序 runInContext——零依赖(不引 jsdom),与 daemon_client.test.js 同为纯 node:test 风格。边界
验证
EMRG_SKIP_INTEGRATION=1 npm test:27 pass(+5)/ 8 skip / 0 fail