File tree Expand file tree Collapse file tree 6 files changed +28
-21
lines changed
ImportExport/Test/Mftf/Test Expand file tree Collapse file tree 6 files changed +28
-21
lines changed Original file line number Diff line number Diff line change 330330 <data key =" url_path" >catalog/seo/category_url_suffix</data >
331331 <data key =" url_suffix" >.html</data >
332332 </entity >
333+ <entity name =" ImportCategoryFromCSV" type =" category" >
334+ <data key =" name" >simpleCategory5d53a993b7ccb2</data >
335+ </entity >
333336</entities >
Original file line number Diff line number Diff line change 2424 <createData entity =" defaultSimpleProduct" stepKey =" simpleProduct" />
2525 </before >
2626 <after >
27+ <actionGroup ref =" AdminDeleteCategoryByNameActionGroup" stepKey =" deleteSimpleSubCategory" >
28+ <argument name =" categoryName" value =" {{SimpleSubCategory.name}}" />
29+ </actionGroup >
30+ <actionGroup ref =" AdminDeleteCategoryByNameActionGroup" stepKey =" deleteFirstLevelSubCategory" >
31+ <argument name =" categoryName" value =" {{FirstLevelSubCat.name}}" />
32+ </actionGroup >
2733 <deleteData createDataKey =" createDefaultCategory" stepKey =" deleteDefaultCategory" />
2834 <deleteData createDataKey =" simpleProduct" stepKey =" deleteSimpleProduct" />
2935 <actionGroup ref =" AdminLogoutActionGroup" stepKey =" logout" />
Original file line number Diff line number Diff line change 3333 </createData >
3434 </before >
3535 <after >
36- <deleteData createDataKey =" createProductA" stepKey =" deleteProductA" />
37- <deleteData createDataKey =" createProductB" stepKey =" deleteProductB" />
38- <deleteData createDataKey =" createProductC" stepKey =" deleteProductC" />
39- <deleteData createDataKey =" createProductD" stepKey =" deleteProductD" />
40- <deleteData createDataKey =" createProductE" stepKey =" deleteProductE" />
36+ <!-- Delete all products via API -->
37+ <helper class =" Magento\Catalog\Test\Mftf\Helper\ProductApiHelper" method =" deleteAllProductsApi" stepKey =" deleteAllProductsViaApi" />
4138 <deleteData createDataKey =" createCategoryA" stepKey =" deleteCategoryA" />
4239 </after >
4340
Original file line number Diff line number Diff line change 2626 <helper class =" Magento\Catalog\Test\Mftf\Helper\ProductApiHelper" method =" deleteAllProductsApi" stepKey =" deleteAllProductsViaApi" />
2727 <actionGroup ref =" AdminOpenProductIndexPageActionGroup" stepKey =" goToProductList" />
2828 <actionGroup ref =" AdminClearGridFiltersActionGroup" stepKey =" resetProductFilters" />
29+ <!-- Clean up categories-->
30+ <actionGroup ref =" DeleteCategoryActionGroup" stepKey =" cleanSimpleSubCategory" >
31+ <argument name =" categoryEntity" value =" SimpleSubCategory" />
32+ </actionGroup >
2933 <actionGroup ref =" AdminLogoutActionGroup" stepKey =" logoutOfAdmin" />
3034 <magentoCLI command =" config:set checkout/options/enable_guest_checkout_login 0" stepKey =" DisablingGuestCheckoutLogin" />
3135 </after >
253257 </actionGroup >
254258
255259 <!-- @TODO Move cleanup to "after" when MQE-830 is resolved-->
256- <!-- Clean up categories-->
257- <comment userInput =" Clean up categories" stepKey =" cleanupCategoriesComment" />
258- <actionGroup ref =" DeleteCategoryActionGroup" stepKey =" cleanSimpleSubCategory" >
259- <argument name =" categoryEntity" value =" SimpleSubCategory" />
260- </actionGroup >
261260 <!-- Clean up products-->
262261 <comment userInput =" Clean up simple product" stepKey =" cleanUpSimpleProduct" />
263262 <actionGroup ref =" DeleteProductUsingProductGridActionGroup" stepKey =" deleteSimpleProduct" >
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" UTF-8" ?>
22<!--
3- /**
4- * Copyright © Magento, Inc. All rights reserved.
5- * See COPYING.txt for license details .
6- */
3+ /**
4+ * Copyright 2019 Adobe
5+ * All Rights Reserved .
6+ */
77-->
88
99<tests xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
3838 <argument name =" productName" value =" simpleProductWithShortNameAndSku.name" />
3939 </actionGroup >
4040 <deleteData createDataKey =" createCategory" stepKey =" deleteCategory" />
41+ <actionGroup ref =" AdminDeleteCategoryByNameActionGroup" stepKey =" deleteImportCategory" >
42+ <argument name =" categoryName" value =" {{ImportCategoryFromCSV.name}}" />
43+ </actionGroup >
4144 <!-- Delete attribute-->
4245 <deleteData createDataKey =" productAttribute" stepKey =" deleteProductAttribute" />
4346 <actionGroup ref =" AdminLogoutActionGroup" stepKey =" logoutFromAdmin" />
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" UTF-8" ?>
22<!--
3- /**
4- * Copyright © Magento, Inc. All rights reserved.
5- * See COPYING.txt for license details .
6- */
3+ /**
4+ * Copyright 2021 Adobe
5+ * All Rights Reserved .
6+ */
77-->
88
99<tests xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
4343 <argument name =" customerEmail" value =" CustomerEntityOne.email" />
4444 </actionGroup >
4545 <!-- delete Category and Products -->
46- <deleteData createDataKey =" createProduct1" stepKey =" deleteProduct1" />
47- <deleteData createDataKey =" createProduct2" stepKey =" deleteProduct2" />
46+ <helper class =" Magento\Catalog\Test\Mftf\Helper\ProductApiHelper" method =" deleteAllProductsApi" stepKey =" deleteAllProductsViaApi" />
4847 <deleteData createDataKey =" category" stepKey =" deleteCategory" />
4948 <!-- Logout -->
5049 <actionGroup ref =" AdminLogoutActionGroup" stepKey =" logout" />
5150 <!-- Disable single store view back -->
5251 <magentoCLI command =" config:set general/single_store_mode/enabled 0" stepKey =" enabledSingleStoreMode" />
5352 </after >
54-
53+
5554 <!-- Go to frontend and make a user account and login with it -->
5655 <actionGroup ref =" SignUpNewUserFromStorefrontActionGroup" stepKey =" signUpNewUser" >
5756 <argument name =" Customer" value =" CustomerEntityOne" />
You can’t perform that action at this time.
0 commit comments