-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
test(): migrate tests to playwright/jest #9333
Conversation
`_searchPossibleTargets` => `fintTargetsTraversal`
t Update eventData.test.ts
a real fix fix fix f Update StackedObject.ts fix
cleanup Update canvas_events.js hovering state
Build Stats
|
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.
reverted, now only tests are here and #9329
"canvas" | ||
], | ||
[ | ||
"dragleave", |
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.
weird, a bug.
after dragstart nothing has entered yet
"dragenter", | ||
{ | ||
"e": { | ||
"isTrusted": true | ||
}, | ||
"target": "a", | ||
"subTargets": [], | ||
"dragSource": "b" | ||
}, | ||
"canvas" | ||
], | ||
[ | ||
"dragleave", | ||
{ | ||
"subTargets": [], | ||
"dragSource": "b", | ||
"e": { | ||
"isTrusted": true | ||
}, | ||
"target": "b", | ||
"nextTarget": "a", | ||
"isClick": false, | ||
"pointer": { | ||
"x": 120, | ||
"y": 55 | ||
}, | ||
"absolutePointer": { | ||
"x": 120, | ||
"y": 55 | ||
} | ||
}, | ||
"b" | ||
], |
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.
here canvas says b is entering while b is saying it is leaving
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.
@asturur please merge this
The tests in this PR are much more freindly and reliable - I have PRs with tests that are failing, tests that are migrated here.
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.
It seems that tests are failing becuase of font differences.
We need to register the font - the code you removed from the other CI PR
...(pointer ? { pointer: roundPoint(pointer) } : {}), | ||
...(absolutePointer | ||
? { absolutePointer: roundPoint(absolutePointer) } |
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.
scenePoint/viewportPoint
I ll make an issue with a followup for this PR since the the position of the mouse should be refactored with the proper text utils where possible. |
My point of view on this is that we should use hardcoded position because it makes the test strict. |
Motivation
#9329
Description
Working on #9329 unconvered many ubgs.
Trying to fix them made tests fail.
These tests are not human friendly, they dump endless output onto the console so they are useless.
To be percise
draggable_text
was written by me while grinding my teeth. It was hard and I knew it was incorrect to write it like that.So I have moved
draggable_text
to e2e as it should be, removing redundancies.And I have moved all the
findTarget
related tests to jest.Changes
Gist
In Action