test(e2e): wide-tables 的粘贴改成替换整篇——光标落点不再看版面脸色 - #242
Closed
oratis wants to merge 1 commit into
Closed
Conversation
wide-tables.spec.ts 在 main 上就时红时绿(703402d 那次 CI 也红): 量到 685 而不是 720。本地 4 workers 跑 27 次复现 8 次。 根因:pasteMarkdown 点编辑区**中心**放光标,落点取决于版面——字体 加载、mermaid 异步渲染后的高度变化——落进列表项或引用块,表格就嵌 套在里面,量到的是容器宽度(685)而不是正文列(720)。设计 09 §5 那 次"等图渲染完再点"只压住了一种时序,CI 上还有别的。 修法:粘贴前 ⌘A。点击只负责聚焦,光标落在哪都无所谓——整篇被替换, 表格必然是顶层块。改后 4 workers × 4 轮 36 次全绿,全套 e2e 29 条全绿。 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Owner
Author
|
重复了——#241 已经合了,同一根因同一修法(源码模式整篇替换更彻底)。关掉,把叠放的三个 PR rebase 到新 main 上让 E2E 变绿。 |
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.
独立的小修,不在标签页那组叠放 PR(#238 → #239 → #240)里,但它们每一个的 E2E 都因为这条红着。
Summary
e2e/wide-tables.spec.ts在 main 上就时红时绿:main 的 head(703402d)那次 CI 也红,同一条断言,量到 685 而不是 720。本地--workers 4 --repeat-each 3跑 27 次复现 8 次。pasteMarkdown点编辑区中心放光标,落点取决于版面(字体加载、mermaid 异步渲染后的高度变化),落进列表项或引用块,表格就嵌套在里面,量到的是容器宽度而不是正文列。设计 09 §5 那次"等图渲染完再点"只压住了一种时序。⌘A。点击只负责聚焦,光标落在哪都无所谓——整篇被替换,表格必然是顶层块。How to verify
改前(main)大概率能看到几条 685 vs 720;改后 36 次全绿。全套 e2e 29 条也全绿。
Checks
pnpm lintclean(e2e 目录)pnpm test:e2egreen(29)🤖 Generated with Claude Code