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

#2595 draw selection outline correctly for hovered structures #2929

Conversation

Iogsotot
Copy link
Collaborator

@Iogsotot Iogsotot commented Jul 18, 2023

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:
PR Before

After:
PR after selection
PR after selection and hovering

Check list

  • unit-tests written
  • e2e-tests written
  • documentation updated
  • PR name follows the pattern #1234 – issue name
  • branch name doesn't contain '#'
  • PR is linked with the issue
  • base branch (master or release/xx) is correct
  • task status changed to "Code review"

@Iogsotot Iogsotot force-pushed the feature/2595-draw-selection-outline-correctly-for-hovered-structures-1 branch from 38b3860 to d930f16 Compare July 19, 2023 08:08
@Iogsotot Iogsotot force-pushed the feature/2595-draw-selection-outline-correctly-for-hovered-structures-1 branch from 9e38b9d to 8b2434a Compare July 20, 2023 10:25

// 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 });
Copy link
Collaborator

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 ({
Copy link
Collaborator

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?

@Iogsotot Iogsotot requested a review from Nitvex July 20, 2023 11:22
@Zhirnoff
Copy link
Collaborator

Viewed
2023-07-31_17h40_13

// shift of coordinates relative to the center, for the hover of the entire structure:
const screenCenterShift = 50;

test.describe('Open Ketcher', () => {
Copy link
Collaborator

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
@Nitvex Nitvex force-pushed the feature/2595-draw-selection-outline-correctly-for-hovered-structures-1 branch from ddc294f to abdf04f Compare August 1, 2023 08:04
@Nitvex Nitvex merged commit 713e8c6 into master Aug 1, 2023
4 checks passed
@Nitvex Nitvex deleted the feature/2595-draw-selection-outline-correctly-for-hovered-structures-1 branch August 1, 2023 10:53
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.

Draw selection outline correctly for hovered structures
3 participants