Skip to content

Commit 7a1131b

Browse files
MAGETWO-99883: Reorder doesn't show discount price in Order Items row if the Customer Group is not Default
1 parent ffc8cec commit 7a1131b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
<element name="productNameColumn" type="text" selector=".edit-order-table .col-product .product-title"/>
2525
<element name="productNameOptions" type="text" selector=".edit-order-table .col-product .item-options"/>
2626
<element name="productName" type="text" selector="#order-items_grid span[id*=order_item]"/>
27+
<element name="productPrice" type="text" selector=".order-tables tbody td:nth-child({{row}}) .price" parameterized="true"/>
2728
<element name="productNameOptionsLink" type="text" selector="//table[contains(@class, 'edit-order-table')]//td[contains(@class, 'col-product')]//a[text() = '{{var1}}']" parameterized="true"/>
2829
<element name="productSkuColumn" type="text" selector=".edit-order-table .col-product .product-sku-block"/>
2930
<element name="productTotal" type="text" selector="#order-items_grid .col-total"/>

app/code/Magento/Sales/Test/Mftf/Test/AdminReorderWithCatalogPriceTest.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@
5959
<!--Reorder-->
6060
<click selector="{{AdminOrderDetailsMainActionsSection.reorder}}" stepKey="clickReorder"/>
6161
<!--Verify order item row-->
62-
<waitForElementVisible selector="{{AdminOrderFormItemsSection.rowPrice('1')}}" stepKey="waitOrderItemPriceToBeVisible"/>
63-
<see selector="{{AdminOrderFormItemsSection.rowPrice('1')}}" userInput="${{AdminOrderSimpleProductWithCatalogRule.subtotal}}" stepKey="seeOrderItemSubTotal"/>
62+
<waitForElementVisible selector="{{AdminOrderItemsOrderedSection.productPrice('2')}}" stepKey="waitOrderItemPriceToBeVisible"/>
63+
<see selector="{{AdminOrderItemsOrderedSection.productPrice('2')}}" userInput="${{AdminOrderSimpleProductWithCatalogRule.subtotal}}" stepKey="seeOrderItemPrice"/>
6464
<!--Verify totals on Order page-->
6565
<scrollTo selector="{{AdminOrderFormTotalSection.grandTotal}}" stepKey="scrollToOrderGrandTotal"/>
6666
<waitForElementVisible selector="{{AdminOrderFormTotalSection.total('Subtotal')}}" stepKey="waitOrderSubtotalToBeVisible"/>

0 commit comments

Comments
 (0)