Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update CI #11

Merged
merged 30 commits into from
Dec 13, 2024
Merged

Update CI #11

merged 30 commits into from
Dec 13, 2024

Conversation

wjymtg
Copy link
Collaborator

@wjymtg wjymtg commented Dec 13, 2024

  • flaky&failed tests通过toPass循环基本解决了(但根本原因依然未知,我本地无法复现),现在可能还会有一小部分flaky
  • 去除了update的主分支PR合并触发,因为能合并说明测试通过了也没必要更新对比图了。
  • 我之前发现有一些对比图片里没有节点,调查了下是因为用显示名称搜索的话会遇到输入了全称反而搜索不到的情况,我看应该是comfyui frontend使用的fuzzy search库的问题,可能和这个issue类似。在它的demo网站试了下没有复现,也可能和其他搜索选项有关。不过无论如何都是我们自己没法解决的,就只能使用类名称搜索了
  • 注:发现action定义在主分支之后就可以随便在其他分支上跑,不仅限于主分支。

@wjymtg wjymtg requested a review from doombeaker December 13, 2024 02:31
Comment on lines +145 to +151
// NOTE: not elegant but for BizyAirToggleServerEndpoint it clicks on its dropdown so need some
// offset while not breaking the others.
let y = 350;
if (nodeName === "BizyAirToggleServerEndpoint") {
y = 370;
}
await page.mouse.move(700, y);
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

这个节点会点到选项上导致没有移动,所以坐标需要些许下移

await page.mouse.up();
await expect(page).toHaveScreenshot(`move_${nodeName}.png`, {
maxDiffPixelRatio: 0.01,
threshold: 0.1,
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

默认threshold 0.2会导致右上角API错误红框都识别不出来

wjymtg and others added 4 commits December 13, 2024 10:50
* Update test expectations [skip ci]

* rm old snapshots

* Update test expectations [skip ci]

---------

Co-authored-by: wjymtg <[email protected]>
@doombeaker doombeaker merged commit 04ac8df into master Dec 13, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants