-
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
#2595 draw selection outline correctly for hovered structures #2929
#2595 draw selection outline correctly for hovered structures #2929
Conversation
38b3860
to
d930f16
Compare
9e38b9d
to
8b2434a
Compare
|
||
// 50 - shift of coordinates relative to the center, for the hover of the entire structure: | ||
// eslint-disable-next-line no-magic-numbers | ||
await page.mouse.move(x, y + 50, { steps: 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.
I propose to create a variable instead of comment :)
/* Draw selection outline correctly for hovered structures: */ | ||
/* Arrangement by layers of structures from top to bottom: | ||
text, bond, outline of atoms, outline of bonds, selection of atoms (with hover), selection of bonds (with hover) */ | ||
test('Should draw selection outline correctly for hovered structures', async ({ |
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.
Could you add a link for github issue for this test?
// shift of coordinates relative to the center, for the hover of the entire structure: | ||
const screenCenterShift = 50; | ||
|
||
test.describe('Open Ketcher', () => { |
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.
In the general 'test.describe', you should write what that scope of autotests is automate and not 'Open Ketcher'
…/2595-draw-selection-outline-correctly-for-hovered-structures-1
ddc294f
to
abdf04f
Compare
How the feature works? / How did you fix the issue?
Closes #2595 :
implemented Possible solution
Added addition svg layers - atom, bond-skeleton
*Updated e2e tests for #2916
Before:
After:
Check list
#1234 – issue name