Skip to content

Commit fc8dee7

Browse files
committed
REFACTOR: Extract Action Groups to separate files (MFTF best practices)
1 parent 93e0800 commit fc8dee7

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

app/code/Magento/Shipping/Test/Mftf/ActionGroup/_Deprecated_ActionGroup.xml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,37 @@
2727
<seeInCurrentUrl url="{{AdminOrderDetailsPage.url}}" stepKey="seeViewOrderPageShipping"/>
2828
<see selector="{{AdminOrderDetailsMessagesSection.successMessage}}" userInput="The shipment has been created." stepKey="seeShipmentCreateSuccess"/>
2929
</actionGroup>
30+
<actionGroup name="seeProductInShipmentItems">
31+
<annotations>
32+
<description>Validates that the provided Product is present and correct on the view Admin Order Shipment page under the 'Items Shipped' section.</description>
33+
</annotations>
34+
<arguments>
35+
<argument name="product"/>
36+
</arguments>
37+
38+
<see selector="{{AdminShipmentItemsSection.skuColumn}}" userInput="{{product.sku}}" stepKey="seeProductSkuInGrid"/>
39+
</actionGroup>
40+
<actionGroup name="verifyBasicShipmentInformation">
41+
<annotations>
42+
<description>Validates that the provided Customer, Shipping Address, Billing Address and Customer Group are present and correct on the view Admin Order page.</description>
43+
</annotations>
44+
<arguments>
45+
<argument name="customer" defaultValue=""/>
46+
<argument name="shippingAddress" defaultValue=""/>
47+
<argument name="billingAddress" defaultValue=""/>
48+
<argument name="customerGroup" defaultValue="GeneralCustomerGroup"/>
49+
</arguments>
50+
51+
<see selector="{{AdminShipmentOrderInformationSection.customerName}}" userInput="{{customer.firstname}}" stepKey="seeCustomerName"/>
52+
<see selector="{{AdminShipmentOrderInformationSection.customerEmail}}" userInput="{{customer.email}}" stepKey="seeCustomerEmail"/>
53+
<see selector="{{AdminShipmentOrderInformationSection.customerGroup}}" userInput="{{customerGroup.code}}" stepKey="seeCustomerGroup"/>
54+
<see selector="{{AdminShipmentAddressInformationSection.billingAddress}}" userInput="{{billingAddress.street[0]}}" stepKey="seeBillingAddressStreet"/>
55+
<see selector="{{AdminShipmentAddressInformationSection.billingAddress}}" userInput="{{billingAddress.city}}" stepKey="seeBillingAddressCity"/>
56+
<see selector="{{AdminShipmentAddressInformationSection.billingAddress}}" userInput="{{billingAddress.country_id}}" stepKey="seeBillingAddressCountry"/>
57+
<see selector="{{AdminShipmentAddressInformationSection.billingAddress}}" userInput="{{billingAddress.postcode}}" stepKey="seeBillingAddressPostcode"/>
58+
<see selector="{{AdminShipmentAddressInformationSection.shippingAddress}}" userInput="{{shippingAddress.street[0]}}" stepKey="seeShippingAddressStreet"/>
59+
<see selector="{{AdminShipmentAddressInformationSection.shippingAddress}}" userInput="{{shippingAddress.city}}" stepKey="seeShippingAddressCity"/>
60+
<see selector="{{AdminShipmentAddressInformationSection.shippingAddress}}" userInput="{{shippingAddress.country_id}}" stepKey="seeShippingAddressCountry"/>
61+
<see selector="{{AdminShipmentAddressInformationSection.shippingAddress}}" userInput="{{shippingAddress.postcode}}" stepKey="seeShippingAddressPostcode"/>
62+
</actionGroup>
3063
</actionGroups>

0 commit comments

Comments
 (0)