-
Notifications
You must be signed in to change notification settings - Fork 132
MQE-2140: [chrome81] dragAndDrop with x and y offsets no longer works #725
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Code change looks good to me.
- Please check with @KevinBKozan on why we need to use custom steps instead of the web driver drag and drop function in the first place. I remember it's some page builder requirements.
- I think mainline 2.4 has been cleaned up. Please update your UR build to make sure your change works for old chrome version for drag and drop tests and/or test changes if needed.
@jilu1 it was a pagebuilder requirement, yes. If you remove them and pagebuilder tests still pass then it should be fine. |
parent::dragAndDrop($source, $target); | ||
$action->clickAndHold($snodes); | ||
$action->moveToElement($tnodes); | ||
$action->release($tnodes)->perform(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason for this change? I remember this issue only applies for dragAndDrop with offset.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for chrome 81, separating out dragAndDrop into it's native functions helped resolve couple of issues with drag and drop without offsets too, hence the fix.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interesting to know. Maybe php webdriver need to make some change? Are we on recent version?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, we are on latest version of php webdriver. It's probably page builder specific.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Changes look good. I only have one question.
- Please rebase your branch. There are too many revision of the MagentoWebDriver.php in your branch.
- From the test fix, it looks like instead of calculating x and y offset, we now use -1. Can we document how user can calculate this value? Will it always be -1?
- Pull latest mainline and run builds with all required extensions to make sure that fix works in all dragAndDrop tests for Chrome65 and Chrome81 if you have not done so.
|
Description
Fixed Issues (if relevant)
Contribution checklist