Skip to content

Commit 99a1d01

Browse files
ENGCOM-8593: [MFTF] Refactoring AdminValidateShippingTrackingNumberTest #31488
- Merge Pull Request #31488 from AnnaAPak/magento2:ref-AdminValidateShippingTrackingNumberTes - Merged commits: 1. 0406e76 2. 7cedea5 3. e00dec7
2 parents cd857f9 + e00dec7 commit 99a1d01

File tree

1 file changed

+21
-6
lines changed

1 file changed

+21
-6
lines changed

app/code/Magento/Shipping/Test/Mftf/Test/AdminValidateShippingTrackingNumberTest.xml

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,34 @@
1919
<before>
2020
<createData entity="Simple_US_Customer" stepKey="createCustomer"/>
2121
<createData entity="SimpleProduct2" stepKey="createSimpleProduct"/>
22+
<createData entity="CustomerCart" stepKey="createCustomerCart">
23+
<requiredEntity createDataKey="createCustomer"/>
24+
</createData>
25+
<createData entity="CustomerCartItem" stepKey="addCartItem">
26+
<requiredEntity createDataKey="createCustomerCart"/>
27+
<requiredEntity createDataKey="createSimpleProduct"/>
28+
</createData>
29+
<createData entity="CustomerAddressInformation" stepKey="addCustomerOrderAddress">
30+
<requiredEntity createDataKey="createCustomerCart"/>
31+
</createData>
32+
<updateData createDataKey="createCustomerCart" entity="CustomerOrderPaymentMethod" stepKey="sendCustomerPaymentInformation">
33+
<requiredEntity createDataKey="createCustomerCart"/>
34+
</updateData>
35+
<createData entity="Shipment" stepKey="shipOrder">
36+
<requiredEntity createDataKey="createCustomerCart"/>
37+
</createData>
2238
<actionGroup ref="AdminLoginActionGroup" stepKey="LoginAsAdmin"/>
2339
</before>
2440
<after>
2541
<deleteData createDataKey="createCustomer" stepKey="deleteCustomer"/>
2642
<deleteData createDataKey="createSimpleProduct" stepKey="deleteSimpleProduct"/>
2743
<actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
2844
</after>
29-
<actionGroup ref="CreateOrderActionGroup" stepKey="goToCreateOrderPage">
30-
<argument name="customer" value="$$createCustomer$$"/>
31-
<argument name="product" value="$$createSimpleProduct$$"/>
32-
</actionGroup>
33-
<grabTextFrom selector="|Order # (\d+)|" stepKey="orderId"/>
34-
<actionGroup ref="AdminShipThePendingOrderActionGroup" stepKey="createShipmentForOrder"/>
45+
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="goToCreateOrderPage"/>
46+
<actionGroup ref="AdminOrdersPageOpenActionGroup" stepKey="openOrdersGrid"/>
47+
<actionGroup ref="AdminOrdersGridClearFiltersActionGroup" stepKey="clearFilters"/>
48+
<grabTextFrom selector="{{AdminOrdersGridSection.orderIdByIncrementId($createCustomerCart.return$)}}" stepKey="orderId"/>
49+
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="createShipmentForOrder"/>
3550
<actionGroup ref="FilterShipmentGridByOrderIdActionGroup" stepKey="filterForNewlyCreatedShipment">
3651
<argument name="orderId" value="$orderId"/>
3752
</actionGroup>

0 commit comments

Comments
 (0)