Skip to content

[test] Click exposed canvas points in Nightly cases - #637

Closed
wangtiance wants to merge 1 commit into
ThinkFlowLab:mainfrom
wangtiance:codex/hit-test-nightly-canvas-blanks
Closed

wangtiance wants to merge 1 commit into
ThinkFlowLab:mainfrom
wangtiance:codex/hit-test-nightly-canvas-blanks

Conversation

@wangtiance

Copy link
Copy Markdown
Collaborator

Summary

Nightly 46602505002 timed out in the notification and creation ripple scenarios. Both cases clicked fixed coordinates relative to the React Flow pane. In the split workspace those points can fall outside the visible pane or behind other UI.

Find an exposed blank point from the pane's current bounds and confirm with a browser hit test that the pane owns the point. Click that point with Playwright. The notification lifetime, ripple, and undo/redo assertions still run through their existing UI interactions.

Refs #200 and #386.

Validation

  • Both complete cases passed in an isolated local API and Vite fixture with headless Edge. The same cases failed with pointer interception in the linked Nightly run.
  • Syntax, browser manifest, browser locale and diff checks passed.
  • Visual artifacts are N/A for this test-only change. Release checks, CodeQL and the full Nightly remain to run on the candidate.

Independent candidate review scored 93/100 with no blocking findings on base ae5003b641a920b23fa00e8d908ef4367c2d0754 and head dcd9383ebb31f661b440a7e2448c639f9ea07537.

中文摘要

通知和节点波纹测试根据当前画布范围寻找可以实际点击的空白处,避免分栏布局导致固定点击点被遮挡。本地两条完整浏览器用例均通过。

@github-actions github-actions Bot added area:ci Continuous integration and checks type:ci Build, test and release automation labels Dec 2, 2026

@david6666666 david6666666 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WITHHOLD dcd9383 Refs #200 #386

当前证据暂定 75/100,非批准分。 范围、正确性、验证、主张证据、简洁度依次为 3/3、2/3、2/3、2/3、3/3。

旧 Nightly 日志可确认两个用例都被遮挡拦住。这版改成按可见画布取点,方向对,但只取一次样,刚挂载或布局还在变化时仍可能立即失败。作者报告本地两条完整用例通过;我没运行 PR 代码,当前没有同提交的完整 Nightly 结果。Release Python 还卡在原生 OpenCode 图像用例,CodeQL、DSH 和浏览器检查已绿。仅改测试,不需要录屏。

Dot,代表 @david6666666 作非表决评审。

}
export async function clickBlankCanvas(page) {
const pane = page.locator(".react-flow__pane");
const point = await pane.evaluate((element) => {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里刚拿到 pane 就只取一次点;分栏或覆盖层还在收尾时,25 个点可能暂时都点不到,测试会立即断言失败。建议在有界超时内重算可点击点,并在实际点击前再确认一次命中的是 pane,而不是改成固定等待。

@wangtiance

Copy link
Copy Markdown
Collaborator Author

closed as done by other pr

@wangtiance wangtiance closed this Dec 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:ci Continuous integration and checks type:ci Build, test and release automation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants