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

Add test for selecting nodes on mac #1055

Merged
merged 4 commits into from
Oct 2, 2024
Merged

Add test for selecting nodes on mac #1055

merged 4 commits into from
Oct 2, 2024

Conversation

christian-byrne
Copy link
Collaborator

Add tests from Comfy-Org/litegraph.js#182 (drag-select on Mac)

@@ -914,13 +924,15 @@ export class ComfyPage {
return new NodeReference(id, this)
}
async getNodeRefsByType(type: string): Promise<NodeReference[]> {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Assumed this is intended return type based on annotation

@huchenlei huchenlei added the New Browser Test Expectations New browser test screenshot should be set by github action label Oct 1, 2024
@huchenlei
Copy link
Member

@christian-byrne Do you have any idea why the test fails even after Comfy-Org/litegraph.js#182 has been merged?

@christian-byrne
Copy link
Collaborator Author

I thought it was because litegraph version wasn't updated yet

@huchenlei
Copy link
Member

I thought it was because litegraph version wasn't updated yet

The commit should be included in v0.7.81 litegraph which was updated yesterday in #1050

@christian-byrne
Copy link
Collaborator Author

Not sure. I can fix when home 6 pst

@huchenlei huchenlei removed the New Browser Test Expectations New browser test screenshot should be set by github action label Oct 1, 2024
@christian-byrne
Copy link
Collaborator Author

christian-byrne commented Oct 2, 2024

  • Ctrl+Drag Multiple Node Selection Test: Updated the test to draw a selection box around both clip nodes instead of just one, as tnode query not stable
  • Ctrl+Click to Add Node to Selection Test: I initially believed this feature was already supported on Mac, but it turns out it wasn't. I submitted a PR to add this feature and moved the test case there: Fix adding node to selection with Ctrl+Click on Mac litegraph.js#189

@huchenlei huchenlei merged commit 31b1aee into main Oct 2, 2024
9 checks passed
@huchenlei huchenlei deleted the mac-test branch October 2, 2024 14:43
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