|
| 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="AdminCreateInvoice"> |
| 12 | + <annotations> |
| 13 | + <features value="Sales"/> |
| 14 | + <stories value="1Create an Invoice via the Admin"/> |
| 15 | + <title value="1111Admin should be able to create an invoice"/> |
| 16 | + <description value="1Admin should be able to create an invoice"/> |
| 17 | + <severity value="MAJOR"/> |
| 18 | + <testCaseId value="1MAGETWO-72096"/> |
| 19 | + <group value="sales"/> |
| 20 | + </annotations> |
| 21 | + <before> |
| 22 | + <createData entity="ApiCategory" stepKey="createCategory"/> |
| 23 | + |
| 24 | + <createData entity="defaultSimpleProduct" stepKey="createConfigProduct"> |
| 25 | + <requiredEntity createDataKey="createCategory"/> |
| 26 | + </createData> |
| 27 | + |
| 28 | + <createData entity="GuestCart" stepKey="createGuestCart"/> |
| 29 | + <createData entity="SimpleCartItem" stepKey="addCartItem"> |
| 30 | + <requiredEntity createDataKey="createGuestCart"/> |
| 31 | + <requiredEntity createDataKey="createConfigProduct"/> |
| 32 | + </createData> |
| 33 | + <createData entity="GuestAddressInformation" stepKey="addGuestOrderAddress"> |
| 34 | + <requiredEntity createDataKey="createGuestCart"/> |
| 35 | + </createData> |
| 36 | + <updateData createDataKey="createGuestCart" entity="GuestOrderPaymentMethod" stepKey="sendGuestPaymentInformation"> |
| 37 | + <requiredEntity createDataKey="createGuestCart"/> |
| 38 | + </updateData> |
| 39 | + |
| 40 | + <createData entity="Invoice" stepKey="invoiceOrder"/> |
| 41 | + |
| 42 | + |
| 43 | + </before> |
| 44 | + <after> |
| 45 | + <!-- <deleteData createDataKey="createCategory" stepKey="deleteCategory"/> |
| 46 | + <deleteData createDataKey="createConfigProduct" stepKey="deleteConfigProduct"/> --> |
| 47 | + <actionGroup ref="AdminLogoutActionGroup" stepKey="amOnLogoutPage"/> |
| 48 | + </after> |
| 49 | + |
| 50 | + <actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/> |
| 51 | + |
| 52 | + </test> |
| 53 | +</tests> |
0 commit comments