|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<!-- |
| 3 | + /** |
| 4 | + * Copyright © Magento, Inc. All rights reserved. |
| 5 | + * See COPYING.txt for license details. |
| 6 | + */ |
| 7 | +--> |
| 8 | + |
| 9 | +<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 10 | + xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd"> |
| 11 | + <test name="AdminCheckZeroSubtotalOrderIsInProcessingStatusTest"> |
| 12 | + <annotations> |
| 13 | + <features value="Checkout"/> |
| 14 | + <stories value="MAGETWO-71375: Zero Subtotal Orders have incorrect status"/> |
| 15 | + <title value="Zero Subtotal Orders should have the 'Processing' status on creating"/> |
| 16 | + <description value="Created order should be in Processing status"/> |
| 17 | + <severity value="MAJOR"/> |
| 18 | + <testCaseId value="MAGETWO-94178"/> |
| 19 | + <group value="checkout"/> |
| 20 | + </annotations> |
| 21 | + <before> |
| 22 | + <createData entity="SimpleSubCategory" stepKey="simplecategory"/> |
| 23 | + <createData entity="SimpleProduct" stepKey="simpleproduct"> |
| 24 | + <requiredEntity createDataKey="simplecategory"/> |
| 25 | + </createData> |
| 26 | + <createData entity="PaymentMethodsSettingConfig" stepKey="paymentMethodsSettingConfig"/> |
| 27 | + <createData entity="FreeShippingMethodsSettingConfig" stepKey="freeShippingMethodsSettingConfig"/> |
| 28 | + |
| 29 | + <createData entity="ApiSalesRule" stepKey="createCartPriceRule"> |
| 30 | + <field key="discount_amount">100</field> |
| 31 | + </createData> |
| 32 | + <createData entity="ApiSalesRuleCoupon" stepKey="createCartPriceRuleCoupon"> |
| 33 | + <requiredEntity createDataKey="createCartPriceRule"/> |
| 34 | + </createData> |
| 35 | + |
| 36 | + <actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/> |
| 37 | + |
| 38 | + </before> |
| 39 | + |
| 40 | + <after> |
| 41 | + <deleteData createDataKey="createCartPriceRule" stepKey="deleteSalesRule"/> |
| 42 | + <createData entity="DefaultShippingMethodsConfig" stepKey="defaultShippingMethodsConfig"/> |
| 43 | + <createData entity="DisableFreeShippingConfig" stepKey="disableFreeShippingConfig"/> |
| 44 | + <createData entity="DisablePaymentMethodsSettingConfig" stepKey="disablePaymentMethodsSettingConfig"/> |
| 45 | + <actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/> |
| 46 | + <deleteData createDataKey="simpleproduct" stepKey="deleteProduct"/> |
| 47 | + <deleteData createDataKey="simplecategory" stepKey="deleteCategory"/> |
| 48 | + </after> |
| 49 | + |
| 50 | + <actionGroup ref="AddSimpleProductToCartActionGroup" stepKey="AddProductToCard"> |
| 51 | + <argument name="product" value="$$simpleproduct$$"/> |
| 52 | + </actionGroup> |
| 53 | + |
| 54 | + <actionGroup ref="GoToCheckoutFromMinicartActionGroup" stepKey="clickToProceedToCheckout"/> |
| 55 | + |
| 56 | + <actionGroup ref="ShipmentFormFreeShippingActionGroup" stepKey="shipmentFormFreeShippingActionGroup"/> |
| 57 | + |
| 58 | + <actionGroup ref="StorefrontApplyDiscountCodeActionGroup" stepKey="applyDiscountCoupon"> |
| 59 | + <argument name="discountCode" value="$createCartPriceRuleCoupon.code$"/> |
| 60 | + </actionGroup> |
| 61 | + |
| 62 | + <actionGroup ref="ClickPlaceOrderActionGroup" stepKey="clickPlaceOrder"/> |
| 63 | + <grabTextFrom selector="{{CheckoutSuccessMainSection.orderNumber}}" stepKey="grabOrderNumber"/> |
| 64 | + |
| 65 | + <actionGroup ref="AdminOrdersPageOpenActionGroup" stepKey="navigateToSalesOrderPage"/> |
| 66 | + |
| 67 | + <actionGroup ref="AdminCheckOrderStatusInGridActionGroup" stepKey="seeOrderStatusInGrid"> |
| 68 | + <argument name="orderId" value="$grabOrderNumber"/> |
| 69 | + <argument name="status" value="Processing"/> |
| 70 | + </actionGroup> |
| 71 | + |
| 72 | + </test> |
| 73 | +</tests> |
0 commit comments