Skip to content

Commit 01cab91

Browse files
committed
ACP2E-1514: Front-end re-order function applies same backend custom price
modified mftf test
1 parent 95290b7 commit 01cab91

File tree

1 file changed

+10
-13
lines changed

1 file changed

+10
-13
lines changed

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

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
<!--Enable flat rate shipping-->
2121
<magentoCLI command="config:set {{EnableFlatRateConfigData.path}} {{EnableFlatRateConfigData.value}}"
2222
stepKey="enableFlatRate"/>
23+
2324
<createData entity="SimpleSubCategory" stepKey="createCategory"/>
2425
<createData entity="SimpleProduct" stepKey="createSimpleProduct">
2526
<field key="price">100.00</field>
@@ -28,6 +29,8 @@
2829

2930
<!-- Create Customer Account -->
3031
<createData entity="Simple_US_Customer" stepKey="createCustomer"/>
32+
33+
<actionGroup ref="AdminLoginActionGroup" stepKey="LoginAsAdmin"/>
3134
</before>
3235
<after>
3336
<!-- Disable shipping method for customer with default address -->
@@ -38,23 +41,17 @@
3841
<deleteData createDataKey="createCategory" stepKey="deleteCategory"/>
3942
<deleteData createDataKey="createCustomer" stepKey="deleteCustomer"/>
4043
</after>
41-
<actionGroup ref="AdminLoginActionGroup" stepKey="LoginAsAdmin"/>
42-
<actionGroup ref="AdminOrdersPageOpenActionGroup" stepKey="onOrderPage"/>
43-
44-
<!--Create new order-->
44+
<!-- Create new order -->
4545
<actionGroup ref="NavigateToNewOrderPageExistingCustomerActionGroup" stepKey="CreateNewOrder">
4646
<argument name="customer" value="Simple_US_Customer"/>
4747
</actionGroup>
48-
<waitForPageLoad stepKey="WaitForCreateOrderPage"/>
48+
<waitForElementVisible stepKey="waitForProductAddVisible" selector="{{AdminOrderFormItemsOrderedSection.addProductsBySku}}"/>
4949

50-
<!--Click on "Add products by SKU" button > Type SKU > And add it to order with 1 qty value-->
51-
<click selector="{{AdminOrderFormItemsOrderedSection.addProductsBySku}}" stepKey="clickAddProductsBySKUButton"/>
52-
<waitForElementVisible stepKey="waitForElementVisible" selector="{{AdminOrderFormItemsSection.skuNumber('0')}}"/>
53-
<fillField selector="{{AdminOrderFormItemsSection.skuNumber('0')}}" stepKey="typeCreatedProductGroupSKU"
54-
userInput="$$createSimpleProduct.sku$$"/>
55-
<fillField selector="{{AdminOrderFormItemsSection.qty('0')}}" stepKey="setOrderItemQuantity" userInput="1"/>
56-
<pressKey selector="{{AdminOrderFormItemsSection.skuNumber('0')}}" parameterArray="[\Facebook\WebDriver\WebDriverKeys::ENTER]"
57-
stepKey="pressKey"/>
50+
<!-- Add product to order -->
51+
<actionGroup ref="AddSimpleProductToOrderActionGroup" stepKey="addProductToOrder">
52+
<argument name="product" value="$$createSimpleProduct$$"/>
53+
<argument name="productQty" value="1"/>
54+
</actionGroup>
5855
<waitForPageLoad stepKey="WaitForProductAdd"/>
5956
<waitForLoadingMaskToDisappear stepKey="WaitForProductAddLoading"/>
6057

0 commit comments

Comments
 (0)