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 ZoomIn/ZoomOut/ZoomReset operations with valid helper functions #6011

Open
AlexeyGirin opened this issue Nov 26, 2024 · 0 comments
Assignees
Milestone

Comments

@AlexeyGirin
Copy link
Collaborator

AlexeyGirin commented Nov 26, 2024

  1. Identify all ZoomIn/ZoomOut/ZoomReset operations made by keyboard Control+-, Control+= and Control+0 and by using methods
    selectTopPanelButton(MacromoleculesTopPanelButton.ZoomIn, page);,
    selectTool(MacromoleculesTopPanelButton.ZoomIn, page);,
    selectTopPanelButton(MacromoleculesTopPanelButton.ZoomOut, page);
    selectTool(MacromoleculesTopPanelButton.ZoomOut, page);,
    selectTopPanelButton(MacromoleculesTopPanelButton.ZoomReset, page);
    and selectTool(MacromoleculesTopPanelButton.ZoomReset, page);,
await page.getByTestId('zoom-selector').click();
await page.getByTestId('reset-zoom-button').click();'

or similar
and replace them with proper helper function (create them if they doesn't exists)

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants