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

Autotests: Replace Copy/Cut/Paste keyboard operations with valid helper functions #5903

Closed
AlexeyGirin opened this issue Nov 4, 2024 · 1 comment · Fixed by #5959
Closed
Assignees
Milestone

Comments

@AlexeyGirin
Copy link
Collaborator

AlexeyGirin commented Nov 4, 2024

Identify all Control+A, Control+X, Control+C, Control+V operations made by keyboard and replace them with
Control+C ==> copyToClipboardByKeyboard(page)
Control+X ==> cutToClipboardByKeyboard(page)
Control+V ==> pasteFromClipboardByKeyboard(page)
Control+A ==> selectAllStructuresOnCanvas(page)
methods

Recommendation: Try to search "page.keyboard.press(" in code
That could be page.keyboard.press('Control+v');
or page.keyboard.press('${modifier}+KeyC'); or similar

@AlexeyGirin AlexeyGirin added this to the Autotests milestone Nov 4, 2024
@knadonenko
Copy link
Collaborator

In progress

@AlexeyGirin AlexeyGirin changed the title Autotests: Replace Copy/Cut/Paste keyboard operations with valid hepler fuctions Autotests: Replace Copy/Cut/Paste keyboard operations with valid helper functions Nov 4, 2024
@knadonenko knadonenko self-assigned this Nov 4, 2024
knadonenko pushed a commit that referenced this issue Nov 12, 2024
…erations

# Conflicts:
#	ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts
knadonenko pushed a commit that referenced this issue Nov 14, 2024
…-Replace-Copy/Cut/Paste-keyboard-operations
AlexeyGirin pushed a commit that referenced this issue Nov 14, 2024
* Changed ctrl+c to copyToClipBoardByKeyboard

* removed unused

* Control + V changed to pasteFromClipboardByKeyboard

* Control+X replaced by cutToClipboardByKeyboard

* Fix

* cut and paste with modifier changed

* changing steps with modifier

* fixed warnings

* fix

* test fixes, screenshots changed

* update screenshots

---------

Co-authored-by: Konstantin_Nadonenko <konstantin_nadonenko@epam.com>
@AlexeyGirin AlexeyGirin linked a pull request Nov 14, 2024 that will close this issue
9 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants