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

fix: round xOffset and yOffset when resetting cursor #837

Merged
merged 1 commit into from
Jan 31, 2024

Conversation

shadowusr
Copy link
Member

No description provided.

Copy link
Member

@DudaGod DudaGod left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

В остальном /ok

@@ -128,7 +128,8 @@ module.exports = class TestRunner {
const { x = 0, y = 0 } = await session.execute(function () {
return document.body.getBoundingClientRect();
});
await body.moveTo({ xOffset: -x, yOffset: -y });
// x and y must be integer, wdio will throw error otherwise
await body.moveTo({ xOffset: -Math.floor(x), yOffset: -Math.floor(y) });
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Давай юнит хотя бы докинем на это округление

@shadowusr shadowusr force-pushed the users/shadowusr/INFRADUTY-26390.round-x-y branch from 02a8326 to cea4e30 Compare January 31, 2024 13:42
@shadowusr shadowusr merged commit 79786cd into master Jan 31, 2024
2 checks passed
@shadowusr shadowusr deleted the users/shadowusr/INFRADUTY-26390.round-x-y branch January 31, 2024 13:44
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.

3 participants