Skip to content

Commit d5381fa

Browse files
author
olysenko
committed
MAGETWO-89382: Automate MAGETWO-46344 MFTF
1 parent 64b1b05 commit d5381fa

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

dev/tests/acceptance/tests/functional/Magento/FunctionalTest/Catalog/Test/DeleteCategoriesTest.xml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,8 @@
1111
<test name="DeleteCategoriesTest">
1212
<annotations>
1313
<features value="Delete categories"/>
14-
<stories value="Delete categories"/>
1514
<title value="Delete categories."/>
16-
<description value="Delete categories."/>
15+
<description value="Delete Default Root Category and subcategories and vefify after products on storefront."/>
1716
<severity value="CRITICAL"/>
1817
<testCaseId value="MAGETWO-46344"/>
1918
<group value="testNotIsolated"/>
@@ -37,14 +36,17 @@
3736
</before>
3837
<after>
3938
<amOnPage url="admin/admin/auth/logout/" stepKey="amOnLogoutPage"/>
39+
<deleteData createDataKey="createProduct1" stepKey="deleteProduct1"/>
40+
<deleteData createDataKey="createProduct2" stepKey="deleteProduct2"/>
41+
<deleteData createDataKey="createProduct3" stepKey="deleteProduct3"/>
4042
</after>
4143
<actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin1"/>
4244
<amOnPage url="{{AdminCategoryPage.url}}" stepKey="navigateToCategoryPage1"/>
4345
<waitForPageLoad time="30" stepKey="waitForPageCategoryLoadAfterNavigate"/>
4446
<click selector="{{AdminCategorySidebarTreeSection.categoryInTree($$createNewRootCategoryA.name$$)}}" stepKey="openNewRootCategory"/>
4547
<waitForPageLoad stepKey="waitForPageCategoryLoadAfterClickOnNewRootCategory"/>
4648
<seeElement selector="{{AdminCategoryMainActionsSection.DeleteButton}}" stepKey="assertDeleteButtonIsPresent"/>
47-
<!--Move categories from Default Category to NewRootCategory. -->
49+
<!--Move categories from Default Category to NewRootCategory. -->
4850
<actionGroup ref="MoveCategoryActionGroup" stepKey="MoveCategoryBToNewRootCategory">
4951
<argument name="childCategory" value="$$createCategoryC.name$$"/>
5052
<argument name="parentCategory" value="$$createNewRootCategoryA.name$$"/>
@@ -71,7 +73,7 @@
7173
<waitForElementVisible selector="{{AdminStoresGridSection.storeFilterTextField}}" stepKey="waitForPageAdminStoresGridReload"/>
7274
<see userInput="You saved the store." stepKey="seeSavedMessage"/>
7375

74-
<!--&lt;!&ndash; @TODO: Uncomment commented below code after MQE-903 is fixed &ndash;&gt;-->
76+
<!-- @TODO: Uncomment commented below code after MQE-903 is fixed -->
7577
<!-- Perform cli reindex. -->
7678
<!--<magentoCLI command="indexer:reindex" stepKey="magentoCli"/>-->
7779

@@ -89,7 +91,7 @@
8991
<amOnPage url="{{StorefrontHomePage.url}}" stepKey="amOnHomePage"/>
9092
<waitForPageLoad stepKey="homeWaitForPageLoad"/>
9193

92-
<!--&lt;!&ndash; @TODO: Uncomment commented below code after MQE-903 is fixed &ndash;&gt;-->
94+
<!-- @TODO: Uncomment commented below code after MQE-903 is fixed -->
9395
<!--<click selector="{{StorefrontHeaderSection.NavigationCategoryByName($$createCategoryC.name$$)}}" stepKey="browseClickCategoryC"/>-->
9496
<!--<actionGroup ref="StorefrontCheckCategoryActionGroup" stepKey="browseAssertCategoryC">-->
9597
<!--<argument name="category" value="$$createCategoryC$$"/>-->
@@ -110,7 +112,7 @@
110112
<argument name="product" value="$$createProduct2$$"/>
111113
</actionGroup>
112114

113-
<!--&lt;!&ndash; @TODO: Uncomment commented below code after MQE-903 is fixed &ndash;&gt;-->
115+
<!-- @TODO: Uncomment commented below code after MQE-903 is fixed -->
114116
<!--<actionGroup ref="StorefrontCheckCategoryActionGroup" stepKey="browseAssertCategoryB">-->
115117
<!--<argument name="category" value="$$createCategoryB$$"/>-->
116118
<!--<argument name="productCount" value="1"/>-->

0 commit comments

Comments
 (0)