|
| 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="AdminCheckAddtoCartForManageStockDownloadableProductTest"> |
| 12 | + <annotations> |
| 13 | + <stories value="Manage Stock For Grouped Product"/> |
| 14 | + <title value="Update Downloadable Product with (Out of Stock) Visible in Category Only"/> |
| 15 | + <description value="Test log in to Update Downloadable Product and Update Downloadable Product with Regular Price (In Stock) Visible in Category Only"/> |
| 16 | + <testCaseId value="AC-4167"/> |
| 17 | + <severity value="CRITICAL"/> |
| 18 | + <group value="catalog"/> |
| 19 | + </annotations> |
| 20 | + <before> |
| 21 | + <actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/> |
| 22 | + |
| 23 | + |
| 24 | + <createData entity="SimpleSubCategory" stepKey="createSimpleCategory"/> |
| 25 | + |
| 26 | + <createData entity="ApiDownloadableProduct" stepKey="createDownloadableProduct"> |
| 27 | + <requiredEntity createDataKey="createSimpleCategory"/> |
| 28 | + </createData> |
| 29 | + |
| 30 | + <createData entity="ApiDownloadableLink" stepKey="addFirstDownloadableLink"> |
| 31 | + <requiredEntity createDataKey="createDownloadableProduct"/> |
| 32 | + </createData> |
| 33 | + </before> |
| 34 | + <after> |
| 35 | + |
| 36 | + |
| 37 | + |
| 38 | + <!-- Set ManageStock to Yes--> |
| 39 | + <magentoCLI command="config:set {{CatalogInventoryManageStockDisable.path}} 1" stepKey="manageStockEnable"/> |
| 40 | + <actionGroup ref="AdminLogoutActionGroup" stepKey="logoutFromAdmin"/> |
| 41 | + </after> |
| 42 | + <amOnPage url="{{ProductCatalogPage.url}}" stepKey="goToCatalogProduct"/> |
| 43 | + <waitForPageLoad stepKey="waitForPageLoad2"/> |
| 44 | + |
| 45 | + |
| 46 | + </test> |
| 47 | +</tests> |
0 commit comments