-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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] Refactoring of ProductsQtyReturnAfterOrderCancelTest #31097
Merged
magento-engcom-team
merged 11 commits into
magento:2.4-develop
from
AnnaAPak:ref-ProductsQtyReturnAfterOrderCancelTest
Dec 22, 2020
Merged
Changes from 5 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
f36929a
initial commit
AnnaAPak 94cdcf1
Refactored ProductsQtyReturnAfterOrderCancelTest
AnnaAPak 0d32349
refactored
AnnaAPak 9bffc08
refactored
AnnaAPak ad511d6
refactored stepKeys
AnnaAPak 234c784
refactoring
AnnaAPak 56e2026
add "DEPRECATED" to title
AnnaAPak 0d93b24
refactored
AnnaAPak 04bd4bd
Rename AdminInvoiceWIthUpdatedProductQtyActionGroup.xml to AdminInvoi…
AnnaAPak a4403e9
Rename AdminCheckProductQtyAfterOrderCancelling.xml to AdminCheckProd…
engcom-Charlie ce31180
Merge branch '2.4-develop' into ref-ProductsQtyReturnAfterOrderCancel…
engcom-Charlie File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
89 changes: 89 additions & 0 deletions
89
...e/Magento/ConfigurableProduct/Test/Mftf/Test/AdminCheckProductQtyAfterOrderCancelling.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
/** | ||
* Copyright © Magento, Inc. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
--> | ||
|
||
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd"> | ||
<test name="AdminCheckProductQtyAfterOrderCancellingTest"> | ||
|
||
<annotations> | ||
<features value="ConfigurableProduct"/> | ||
<stories value="Cancel order"/> | ||
<title value="Product quantity return after order cancel"/> | ||
<description value="Check Product quantity return after order cancel"/> | ||
<severity value="CRITICAL"/> | ||
<testCaseId value="MAGETWO-97228"/> | ||
<useCaseId value="MAGETWO-82221"/> | ||
<group value="ConfigurableProduct"/> | ||
</annotations> | ||
|
||
<before> | ||
<createData entity="ApiCategory" stepKey="createCategory"/> | ||
|
||
<createData entity="defaultSimpleProduct" stepKey="createConfigProduct"> | ||
<requiredEntity createDataKey="createCategory"/> | ||
</createData> | ||
|
||
<createData entity="GuestCart" stepKey="createGuestCart"/> | ||
<createData entity="FourCartItems" stepKey="addCartItem"> | ||
<requiredEntity createDataKey="createGuestCart"/> | ||
<requiredEntity createDataKey="createConfigProduct"/> | ||
</createData> | ||
<createData entity="GuestAddressInformation" stepKey="addGuestOrderAddress"> | ||
<requiredEntity createDataKey="createGuestCart"/> | ||
</createData> | ||
<updateData createDataKey="createGuestCart" entity="GuestOrderPaymentMethod" stepKey="sendGuestPaymentInformation"> | ||
<requiredEntity createDataKey="createGuestCart"/> | ||
</updateData> | ||
|
||
<actionGroup ref="AdminLoginActionGroup" stepKey="login"/> | ||
|
||
</before> | ||
|
||
<after> | ||
<deleteData createDataKey="createCategory" stepKey="deleteCategory"/> | ||
<deleteData createDataKey="createConfigProduct" stepKey="deleteConfigProduct"/> | ||
<actionGroup ref="AdminLogoutActionGroup" stepKey="amOnLogoutPage"/> | ||
</after> | ||
|
||
<actionGroup ref="FilterOrderGridByIdActionGroup" stepKey="filterOrderGridById"> | ||
<argument name="orderId" value="$createGuestCart.return$"/> | ||
</actionGroup> | ||
|
||
<actionGroup ref="AdminOrderGridClickFirstRowActionGroup" stepKey="openOrder"/> | ||
|
||
<actionGroup ref="AdminInvoiceWIthUpdatedProductQtyActionGroup" stepKey="createPartialInvoice"> | ||
<argument name="qty" value="1"/> | ||
</actionGroup> | ||
|
||
<actionGroup ref="AdminCreateShipmentFromOrderPage" stepKey="createShipment"> | ||
<argument name="Qty" value="1"/> | ||
<argument name="Number" value="111"/> | ||
</actionGroup> | ||
|
||
<actionGroup ref="CancelPendingOrderActionGroup" stepKey="cancelOrder"> | ||
<argument name="orderStatus" value="Complete"/> | ||
</actionGroup> | ||
|
||
<see selector="{{AdminOrderItemsOrderedSection.itemQty('1')}}" userInput="Canceled 3" stepKey="seeCanceledQty"/> | ||
|
||
<actionGroup ref="AdminOpenCatalogProductPageActionGroup" stepKey="goToCatalogProductPage"/> | ||
|
||
<actionGroup ref="FilterProductGridBySku2ActionGroup" stepKey="filterProductGridBySku"> | ||
<argument name="sku" value="$$createConfigProduct.sku$$"/> | ||
</actionGroup> | ||
|
||
<actionGroup ref="AssertAdminProductGridCellActionGroup" stepKey="assertProductDataInGrid"> | ||
<argument name="row" value="1"/> | ||
<argument name="column" value="Quantity"/> | ||
<argument name="value" value="99"/> | ||
</actionGroup> | ||
|
||
<actionGroup ref="AdminClearFiltersActionGroup" stepKey="clearFilters"/> | ||
|
||
</test> | ||
</tests> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
...code/Magento/Sales/Test/Mftf/ActionGroup/AdminInvoiceWIthUpdatedProductQtyActionGroup.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
/** | ||
* Copyright © Magento, Inc. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
--> | ||
|
||
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd"> | ||
<actionGroup name="AdminInvoiceWIthUpdatedProductQtyActionGroup" extends="AdminCreateInvoiceActionGroup"> | ||
<annotations> | ||
<description>Start order Invoicing. | ||
Update product qty to invoice (there is one product in the Order). | ||
Submit the invoice. | ||
</description> | ||
</annotations> | ||
<arguments> | ||
<argument name="qty" type="string"/> | ||
</arguments> | ||
|
||
<fillField selector="{{AdminInvoiceItemsSection.qtyToInvoiceColumn}}" userInput="{{qty}}" stepKey="fillQtyField" after="waitForInvoicePage"/> | ||
<click selector="{{AdminInvoiceItemsSection.updateQty}}" stepKey="clickUpdateQuantityButton" after="changeQtyToInvoice"/> | ||
<waitForPageLoad stepKey="waitForPageRefreshed" after="updateQuantity"/> | ||
</actionGroup> | ||
</actionGroups> |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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, check the naming
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.
Corrected, thank you.