-
Notifications
You must be signed in to change notification settings - Fork 9.4k
MFTF: Admin Deletes Customer's Wishlist Item Test #28632
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
MFTF: Admin Deletes Customer's Wishlist Item Test #28632
Conversation
Hi @DmitryTsymbal. Thank you for your contribution
❗ Automated tests can be triggered manually with an appropriate comment:
You can find more information about the builds here ℹ️ Please run only needed test builds instead of all when developing. Please run all test builds before sending your PR for review. For more details, please, review the Magento Contributor Guide documentation. |
@magento run all tests |
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.
I see two elements that make this test flaky. Please take a look and adjust these 👍
<section name="AdminCustomerWishlistSection"> | ||
<element name="productName" type="input" selector="#wishlistGrid_filter_product_name"/> | ||
<element name="searchButton" type="button" selector=".action-default.scalable.action-secondary"/> | ||
<element name="deleteButton" type="text" selector=".even > td:nth-child(7) > a:nth-child(1)"/> |
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.
This is very flaky way to find the element.
If there is no other option, even selecting by label is more appropriate
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.
Refactored
<createData entity="SimpleSubCategory" stepKey="createCategory"/> | ||
<createData entity="SimpleProduct" stepKey="createProduct"> | ||
<requiredEntity createDataKey="createCategory"/> | ||
</createData> |
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.
Please bear in mind that tests might be run in "on schedule" indexing mode
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.
Added cron cli
@magento run all tests I'm going to review the PR in an hour or two |
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.
✔️ Well done! Thank you for contribution.
Hi @lbajsarowicz, thank you for the review.
|
@magento create issue |
✔️ QA Passed |
@magento run all tests |
@magento run all tests |
Hi @DmitryTsymbal, thank you for your contribution! |
This PR contains a test for deleting items from customer wishlist as Admin user.
Steps to reproduce:
1 - Add a created product into wishlist as a customer
2 - Login as admin user
3 - Find created customer on grid
4 - Find added wishlist item
5 - Delete wishlist item
6 - Perform assertions
Resolved issues: