|
8 | 8 |
|
9 | 9 | <tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
10 | 10 | xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd"> |
11 | | - <test name="AdminUsesDHLAPOnlineShippingCarrierOnCheckoutAsARegisteredCustomerTest"> |
| 11 | + <test name="StorefrontRegisteredCustomerUsesDHLAPOnlineShippingCarrierOnCheckoutTest"> |
12 | 12 | <annotations> |
13 | | - <stories value="DHL Shipping Carrier On Checkout "/> |
14 | | - <title value="Admin Uses DHL AP Online Shipping Carrier On Checkout"/> |
15 | | - <description value="Admin Uses DHL(AP) Online Shipping Carrier On Checkout As A Registered Customer"/> |
| 13 | + <stories value="DHL Shipping Carrier On Checkout"/> |
| 14 | + <title value="Customer Uses DHL AP Online Shipping Carrier On Checkout"/> |
| 15 | + <description value="Testcase verifies On storefront customer successfully place an order using DHL(AP) shipping carrier"/> |
16 | 16 | <severity value="CRITICAL"/> |
17 | 17 | <testCaseId value="AC-5026"/> |
18 | 18 | </annotations> |
|
36 | 36 | <argument name="rate" value="1.35"/> |
37 | 37 | </actionGroup> |
38 | 38 | <!--Create category and simple product--> |
39 | | - <createData entity="ApiCategory" stepKey="createCategory"/> |
40 | | - <createData entity="SimpleProduct" stepKey="createSimpleProduct"> |
41 | | - <requiredEntity createDataKey="createCategory"/> |
42 | | - </createData> |
| 39 | + <createData entity="SimpleProduct" stepKey="createSimpleProduct"/> |
43 | 40 | <!-- Create configurable product with two options --> |
44 | | - <createData entity="ApiConfigurableProduct" stepKey="createConfigProduct"> |
45 | | - <requiredEntity createDataKey="createCategory"/> |
46 | | - </createData> |
| 41 | + <createData entity="ApiConfigurableProduct" stepKey="createConfigProduct"/> |
47 | 42 | <createData entity="productAttributeWithTwoOptions" stepKey="createConfigProductAttribute"/> |
48 | 43 | <createData entity="productAttributeOption1" stepKey="createConfigProductAttributeOption"> |
49 | 44 | <requiredEntity createDataKey="createConfigProductAttribute"/> |
|
57 | 52 | <createData entity="ApiSimpleOne" stepKey="createConfigChildProduct"> |
58 | 53 | <requiredEntity createDataKey="createConfigProductAttribute"/> |
59 | 54 | <requiredEntity createDataKey="getConfigAttributeOption"/> |
60 | | - <requiredEntity createDataKey="createCategory"/> |
61 | 55 | </createData> |
62 | 56 | <createData entity="ConfigurableProductTwoOptions" stepKey="createConfigProductOption"> |
63 | 57 | <requiredEntity createDataKey="createConfigProduct"/> |
|
69 | 63 | <requiredEntity createDataKey="createConfigChildProduct"/> |
70 | 64 | </createData> |
71 | 65 | <!--Create Bundle product with multi select option--> |
72 | | - <createData entity="BundleProductPriceViewRange" stepKey="createBundleProduct"> |
73 | | - <requiredEntity createDataKey="createCategory"/> |
74 | | - </createData> |
| 66 | + <createData entity="BundleProductPriceViewRange" stepKey="createBundleProduct"/> |
75 | 67 | <createData entity="MultipleSelectOption" stepKey="createBundleOption1_1"> |
76 | 68 | <requiredEntity createDataKey="createBundleProduct"/> |
77 | 69 | <field key="required">True</field> |
|
97 | 89 | <deleteData createDataKey="createConfigProductAttribute" stepKey="deleteConfigProductAttribute"/> |
98 | 90 | <deleteData createDataKey="createBundleProduct" stepKey="deleteBundleProduct"/> |
99 | 91 | <deleteData createDataKey="createSimpleProduct" stepKey="deleteSimpleProduct"/> |
100 | | - <deleteData createDataKey="createCategory" stepKey="deleteCategory"/> |
101 | 92 | <!-- Reset shipping origin --> |
102 | 93 | <actionGroup ref="AdminResetShippingOriginConfigurationActionGroup" stepKey="resetCaliforniaShippingOrigin"/> |
103 | 94 | <actionGroup ref="AdminDisableDHLConfigurationActionGroup" stepKey="resetDhlConfig"/> |
|
141 | 132 | <waitForElement selector="{{CheckoutCartSummarySection.shippingMethods('Express easy')}}" stepKey="verifyExpressEasyIsAvailable"/> |
142 | 133 | <waitForElement selector="{{CheckoutCartSummarySection.shippingMethods('Express 12:00')}}" stepKey="verifyExpress12IsAvailable"/> |
143 | 134 | <waitForElement selector="{{CheckoutCartSummarySection.shippingMethods('Medical express')}}" stepKey="verifyMedicalExpressIsAvailable"/> |
144 | | - <waitForElementClickable selector="{{CheckoutCartSummarySection.shippingMethods('Express worldwide')}}" stepKey="waitForExpressWorldWideIsClickable"/> |
145 | 135 | <click selector="{{CheckoutCartSummarySection.shippingMethods('Express worldwide')}}" stepKey="selectExpressWorldWide"/> |
146 | 136 | <actionGroup ref="StorefrontClickProceedToCheckoutActionGroup" stepKey="goToCheckout"/> |
147 | 137 | <actionGroup ref="StorefrontCheckoutClickNextButtonActionGroup" stepKey="clickOnNextButton"/> |
|
151 | 141 | <grabTextFrom selector="{{CheckoutSuccessMainSection.orderNumber22}}" stepKey="grabOrderNumber"/> |
152 | 142 | <!--navigate to orders grid--> |
153 | 143 | <actionGroup ref="AdminOrdersPageOpenActionGroup" stepKey="goToAdminSalesOrders"/> |
154 | | - <!--filter order by ID--> |
155 | | - <actionGroup ref="OpenOrderByIdActionGroup" stepKey="filterOrderGridById"> |
156 | | - <argument name="orderId" value="$grabOrderNumber"/> |
| 144 | + <actionGroup ref="FilterOrderGridByIdActionGroup" stepKey="filterOrderGridById"> |
| 145 | + <argument name="orderId" value="{$grabOrderNumber}"/> |
157 | 146 | </actionGroup> |
158 | | - <!--assert order ID--> |
159 | | - <assertNotEmpty stepKey="assertOrderIdIsNotEmpty"> |
160 | | - <actualResult type="const">$grabOrderNumber</actualResult> |
161 | | - </assertNotEmpty> |
| 147 | + <waitForText selector="{{AdminOrdersGridSection.firstRow}}" userInput="$grabOrderNumber" stepKey="seeOrderIdInGrid"/> |
162 | 148 | </test> |
163 | 149 | </tests> |
0 commit comments