-
Notifications
You must be signed in to change notification settings - Fork 177
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
Bug: Fix Eyedropper Karma Test #8524
Conversation
Size Change: +5.23 kB (0%) Total Size: 2.89 MB
ℹ️ View Unchanged
|
// Only regestering image click by clicking twice for some reason | ||
await fixture.events.click(image); | ||
await fixture.events.click(image); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, this is the issue we've also recorded in #7481 and that we need to fix in a general manner.
const bgCanvasRect = | ||
fixture.editor.canvas.framesLayer.frames[0].node.getBoundingClientRect(); | ||
// Make sure to click on part of bg element not covered by media element previously | ||
// assed to canvas |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😂 😂 😂 😂
// assed to canvas | |
// added to canvas |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🍑
const bgCanvasRect = | ||
fixture.editor.canvas.framesLayer.frames[0].node.getBoundingClientRect(); | ||
// Make sure to click on part of bg element not covered by media element previously | ||
// assed to canvas |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😂 😂 😂 😂
// assed to canvas | |
// added to canvas |
await fixture.events.mouse.click( | ||
bgCanvasRect.left + 10, | ||
bgCanvasRect.bottom - 10 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We actually have clickOn
for that same purpose:
await fixture.events.mouse.clickOn(fixture.editor.canvas.framesLayer.frames[0].node, 10 ,10);
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ooo very cool. thanks for sharing!
// await fixture.events.mouse.move( | ||
// imageOnCanvasRect.right - 2, | ||
// imageOnCanvasRect.top + 8 | ||
// ); | ||
// await fixture.events.sleep(10000); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@merapi @barklund if you uncomment this, and run npm run test:karma:edit-story:watch
you can see the misalignment issue I mentioned.
Any thoughts on this? seems like an issue with the eyedropper and not the test, but maybe I'm misunderstanding something. Anyway, y'all have more context here. curious to see what you think
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Found it - I can replicate the issue on one of my machines, will fix it today/tomorrow, right now I will work on a general fix for Moveable (double click/dnd issue).
The Moveable fix is already merged and the eyedropper fix will be in another PR, so I'm closing this. |
Context
Karma test for eye dropper is currently failing on main. This fixes the existing karma test up until the point of the eyedropper having a misalignment issue at it's core. once the eyedropper is fixed this karma test should work properly.
Summary
Relevant Technical Choices
To-do
User-facing changes
Testing Instructions
QA
This PR can be tested by following these steps:
UAT
This PR can be tested by following these steps:
Reviews
Does this PR have a security-related impact?
Does this PR change what data or activity we track or use?
Does this PR have a legal-related impact?
Checklist
Type: XYZ
label to the PRFixes #