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 (part 2) #6268

Closed
AlexeyGirin opened this issue Jan 14, 2025 · 0 comments · Fixed by #6285 or #6307
Closed
Assignees
Labels
Autotests refactor Code refactoring, without changing the functionality
Milestone

Comments

@AlexeyGirin
Copy link
Collaborator

AlexeyGirin commented Jan 14, 2025

Identify all ZoomIn/ZoomOut/ZoomReset operations made by by using methods
await page.getByTestId('zoom-in').click();,
await page.getByTestId('zoom-default').click()
await page.getByTestId('zoom-out').click()
await page.getByTestId('zoom-selector').click()
and await page.getByTestId('reset-zoom-button').click()

and replace them with proper helper function
function selectZoomInTool(page: Page, count = 1)
function selectZoomReset(page: Page)
function selectZoomOutTool(page: Page, count = 1)

@AlexeyGirin AlexeyGirin added refactor Code refactoring, without changing the functionality Autotests labels Jan 14, 2025
@AlexeyGirin AlexeyGirin assigned knadonenko and unassigned knadonenko Jan 14, 2025
@AlexeyGirin AlexeyGirin added this to the Autotests milestone Jan 14, 2025
@AlexeyGirin AlexeyGirin self-assigned this Jan 15, 2025
AlexeyGirin added a commit that referenced this issue Jan 15, 2025
…#6285)

* first draft

* test 2

* test 2

* test 2.2

* fix

* last last fix
@AlexeyGirin AlexeyGirin reopened this Jan 15, 2025
YatsekTest pushed a commit that referenced this issue Jan 16, 2025
…#6285)

* first draft

* test 2

* test 2

* test 2.2

* fix

* last last fix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Autotests refactor Code refactoring, without changing the functionality
Projects
None yet
3 participants