Skip to content

Commit f62220b

Browse files
committed
MAGETWO-82385: [CE 2.1.0 rc3] - Cancel an order [configurable product] #5313
1 parent 165e6ae commit f62220b

File tree

5 files changed

+8
-7
lines changed

5 files changed

+8
-7
lines changed

app/code/Magento/ConfigurableProduct/Test/Mftf/Test/AdminCheckingProductQtyAfterOrderCancelTest.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,15 +98,15 @@
9898
<grabTextFrom selector="{{CheckoutSuccessMainSection.orderNumber22}}" stepKey="grabOrderNumber"/>
9999

100100
<!--Open order-->
101-
<actionGroup ref="openOrderById" stepKey="openOrderById">
101+
<actionGroup ref="OpenOrderById" stepKey="openOrderById">
102102
<argument name="orderId" value="{$grabOrderNumber}"/>
103103
</actionGroup>
104104

105105
<!--Start create invoice-->
106106
<actionGroup ref="StartCreateInvoiceFromOrderPage" stepKey="startCreateInvoice"/>
107107
<!--Create partial invoice-->
108108
<actionGroup ref="CreatePartialInvoice" stepKey="createPartialInvoice">
109-
<argument name="rowNumber" value="1"/>
109+
<argument name="productSku" value="$createConfigChildProduct.sku$"/>
110110
<argument name="qtyToInvoice" value="1"/>
111111
</actionGroup>
112112
<!--Submit Invoice-->
@@ -117,7 +117,7 @@
117117
<actionGroup ref="SubmitShipment" stepKey="submitShipment"/>
118118

119119
<!--Cancel order-->
120-
<actionGroup ref="cancelProcessingOrder" stepKey="cancelOrder"/>
120+
<actionGroup ref="CancelProcessingOrder" stepKey="cancelOrder"/>
121121
<!--Check quantities in "Items Ordered" table-->
122122
<see selector="{{AdminOrderItemsOrderedSection.itemQty('1')}}" userInput="Invoiced 1" stepKey="seeInvoicedQuantity"/>
123123
<see selector="{{AdminOrderItemsOrderedSection.itemQty('1')}}" userInput="Shipped 1" stepKey="seeShippedQuantity"/>

app/code/Magento/Sales/Test/Mftf/ActionGroup/AdminInvoiceActionGroup.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@
4747

4848
<actionGroup name="CreatePartialInvoice">
4949
<arguments>
50-
<argument name="rowNumber" type="string" defaultValue="1"/>
50+
<argument name="productSku" type="string"/>
5151
<argument name="qtyToInvoice" type="string" defaultValue="1"/>
5252
</arguments>
53-
<fillField selector="{{AdminInvoiceItemsSection.itemQtyToInvoice(rowNumber)}}" userInput="{{qtyToInvoice}}" stepKey="changeQtyToInvoice"/>
53+
<fillField selector="{{AdminInvoiceItemsSection.itemQtyToInvoiceBySku(productSku)}}" userInput="{{qtyToInvoice}}" stepKey="changeQtyToInvoice"/>
5454
<waitForElementVisible selector="{{AdminInvoiceItemsSection.updateQtyEnabled}}" stepKey="waitForUpdateQtyEnabled"/>
5555
<click selector="{{AdminInvoiceItemsSection.updateQty}}" stepKey="updateQty"/>
5656
<waitForLoadingMaskToDisappear stepKey="waitForQtyToUpdate"/>

app/code/Magento/Sales/Test/Mftf/ActionGroup/AdminOrderActionGroup.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
</actionGroup>
2020

2121
<!--Cancel order that is in processing status-->
22-
<actionGroup name="cancelProcessingOrder" extends="cancelPendingOrder">
22+
<actionGroup name="CancelProcessingOrder" extends="cancelPendingOrder">
2323
<remove keyForRemoval="seeOrderStatusCanceled"/>
2424
<see selector="{{AdminOrderDetailsInformationSection.orderStatus}}" after="seeCancelSuccessMessage" userInput="{{CONST.orderStatusComplete}}" stepKey="seeOrderStatusComplete"/>
2525
</actionGroup>

app/code/Magento/Sales/Test/Mftf/ActionGroup/AdminOrderGridActionGroup.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<amOnPage url="{{AdminOrdersPage.url}}" stepKey="goToGridOrdersPage"/>
2424
<conditionalClick selector="{{AdminOrdersGridSection.clearFilters}}" dependentSelector="{{AdminOrdersGridSection.enabledFilters}}" visible="true" stepKey="clickOnButtonToRemoveFiltersIfPresent"/>
2525
</actionGroup>
26-
<actionGroup name="openOrderById" extends="filterOrderGridById">
26+
<actionGroup name="OpenOrderById" extends="filterOrderGridById">
2727
<click selector="{{AdminDataGridTableSection.firstRow}}" after="clickOrderApplyFilters" stepKey="openOrderViewPage"/>
2828
<waitForPageLoad after="openOrderViewPage" stepKey="waitForOrderViewPageOpened"/>
2929
</actionGroup>

app/code/Magento/Sales/Test/Mftf/Section/AdminInvoiceItemsSection.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,6 @@
1414
<element name="updateQty" type="button" selector=".order-invoice-tables tfoot button[data-ui-id='order-items-update-button']"/>
1515
<element name="updateQtyEnabled" type="button" selector=".order-invoice-tables tfoot button[data-ui-id='order-items-update-button'][class='action-default scalable update-button']"/>
1616
<element name="productColumn" type="text" selector="//*[contains(@class,'order-invoice-tables')]//td[@class = 'col-product']//div[contains(text(),'{{productName}}')]" parameterized="true"/>
17+
<element name="itemQtyToInvoiceBySku" type="input" selector="//div[contains(@class,'product-sku-block') and contains(., '{{productSku}}')]/ancestor::tr//td[contains(@class,'col-qty-invoice')]//input" parameterized="true"/>
1718
</section>
1819
</sections>

0 commit comments

Comments
 (0)