|
| 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="AdminDisableShipmentCommentsTest"> |
| 12 | + <annotations> |
| 13 | + <stories value="There is no Notify Customer by Email checkbox when shipment comments are disabled"/> |
| 14 | + <title value="Admin user can disable shipment comments"/> |
| 15 | + <description value="Disabling Shipment comments"/> |
| 16 | + <severity value="MAJOR"/> |
| 17 | + <group value="shipping"/> |
| 18 | + </annotations> |
| 19 | + |
| 20 | + <before> |
| 21 | + <createData entity="Simple_US_Customer" stepKey="createCustomer"/> |
| 22 | + <createData entity="SimpleProduct2" stepKey="createSimpleProduct"/> |
| 23 | + <createData entity="CustomerCart" stepKey="createCustomerCart"> |
| 24 | + <requiredEntity createDataKey="createCustomer"/> |
| 25 | + </createData> |
| 26 | + <createData entity="CustomerCartItem" stepKey="addCartItem"> |
| 27 | + <requiredEntity createDataKey="createCustomerCart"/> |
| 28 | + <requiredEntity createDataKey="createSimpleProduct"/> |
| 29 | + </createData> |
| 30 | + <createData entity="CustomerAddressInformation" stepKey="addCustomerOrderAddress"> |
| 31 | + <requiredEntity createDataKey="createCustomerCart"/> |
| 32 | + </createData> |
| 33 | + <updateData createDataKey="createCustomerCart" entity="CustomerOrderPaymentMethod" stepKey="sendCustomerPaymentInformation"> |
| 34 | + <requiredEntity createDataKey="createCustomerCart"/> |
| 35 | + </updateData> |
| 36 | + <createData entity="Shipment" stepKey="shipOrder"> |
| 37 | + <requiredEntity createDataKey="createCustomerCart"/> |
| 38 | + </createData> |
| 39 | + <actionGroup ref="AdminLoginActionGroup" stepKey="LoginAsAdmin"/> |
| 40 | + <magentoCLI command="config:set sales_email/shipment_comment/enabled 0" stepKey="disableShipmentComments"/> |
| 41 | + </before> |
| 42 | + <after> |
| 43 | + <deleteData createDataKey="createCustomer" stepKey="deleteCustomer"/> |
| 44 | + <deleteData createDataKey="createSimpleProduct" stepKey="deleteSimpleProduct"/> |
| 45 | + <magentoCLI command="config:set sales_email/shipment_comment/enabled 1" stepKey="disableShipmentComments"/> |
| 46 | + <actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/> |
| 47 | + </after> |
| 48 | + <actionGroup ref="AdminOrdersPageOpenActionGroup" stepKey="openOrdersGrid"/> |
| 49 | + <actionGroup ref="AdminOrdersGridClearFiltersActionGroup" stepKey="clearFilters"/> |
| 50 | + <grabTextFrom selector="{{AdminOrdersGridSection.orderIdByIncrementId($createCustomerCart.return$)}}" stepKey="orderId"/> |
| 51 | + <actionGroup ref="FilterShipmentGridByOrderIdActionGroup" stepKey="filterForNewlyCreatedShipment"> |
| 52 | + <argument name="orderId" value="$orderId"/> |
| 53 | + </actionGroup> |
| 54 | + <actionGroup ref="AdminSelectFirstGridRowActionGroup" stepKey="selectShipmentFromGrid"/> |
| 55 | + <actionGroup ref="AssertAdminThereIsNoNotifyCustomerByEmailCheckboxActionGroup" stepKey="doNotSeeNotifyCustomerCheckbox"/> |
| 56 | + </test> |
| 57 | +</tests> |
0 commit comments