Skip to content

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

Merged
merged 8 commits into from
Jun 12, 2020

Conversation

soumyau
Copy link
Contributor

@soumyau soumyau commented Jun 2, 2020

Description

Fixed Issues (if relevant)

  1. magento/magento2-functional-testing-framework#<issue_number>: Issue title
  2. ...

Contribution checklist

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with unit/verification tests (if applicable)
  • All automated tests passed successfully (all builds on Travis CI are green)
  • Changes to Framework doesn't have backward incompatible changes for tests or have related Pull Request with fixes to tests

@soumyau soumyau changed the title MQE-2143: [chrome81] dragAndDrop with x and y offsets no longer works MQE-2140: [chrome81] dragAndDrop with x and y offsets no longer works Jun 2, 2020
@coveralls
Copy link

coveralls commented Jun 2, 2020

Coverage Status

Coverage remained the same at 55.85% when pulling d4b8dbb on MQE-2140 into ad5249f on develop.

Copy link
Contributor

@jilu1 jilu1 left a comment

Choose a reason for hiding this comment

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

  1. Code change looks good to me.
  2. 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.
  3. 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.

@KevinBKozan
Copy link
Contributor

KevinBKozan commented Jun 3, 2020

  1. 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.

@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();
Copy link
Contributor

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.

Copy link
Contributor Author

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.

Copy link
Contributor

@jilu1 jilu1 Jun 11, 2020

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?

Copy link
Contributor Author

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.

Copy link
Contributor

@jilu1 jilu1 left a comment

Choose a reason for hiding this comment

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

  1. Changes look good. I only have one question.
  2. Please rebase your branch. There are too many revision of the MagentoWebDriver.php in your branch.
  3. 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?
  4. 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.

@soumyau
Copy link
Contributor Author

soumyau commented Jun 11, 2020

  1. Changes look good. I only have one question.
  2. Please rebase your branch. There are too many revision of the MagentoWebDriver.php in your branch.
    Will do 👍
  3. 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?
    It's won't be always one, there are tests which use calculated offsets.
  4. 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.
    I'll trigger another build and add link here 👍

@soumyau soumyau merged commit 7a7e403 into develop Jun 12, 2020
@tomreece tomreece deleted the MQE-2140 branch July 27, 2020 14:11
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.

4 participants