17
17
<testCaseId value =" MAGETWO-46142" />
18
18
<group value =" category" />
19
19
</annotations >
20
+ <!-- Delete all created data during the test execution and assign Default Root Category to Store-->
21
+ <after >
22
+ <actionGroup ref =" LoginAsAdmin" stepKey =" loginAsAdmin2" />
23
+ <amOnPage url =" {{AdminSystemStorePage.url}}" stepKey =" amOnPageAdminSystemStore" />
24
+ <waitForPageLoad stepKey =" waitForPageAdminSystemStoreLoad" />
25
+ <click selector =" {{AdminStoresGridSection.resetButton}}" stepKey =" clickOnResetButton" />
26
+ <waitForPageLoad time =" 10" stepKey =" waitForPageAdminStoresGridLoadAfterResetButton" />
27
+ <fillField selector =" {{AdminStoresGridSection.storeGrpFilterTextField}}" userInput =" Main Website Store" stepKey =" fillFieldOnWebsiteStore" />
28
+ <click selector =" {{AdminStoresGridSection.searchButton}}" stepKey =" clickOnSearchButton" />
29
+ <waitForPageLoad stepKey =" waitForPageAdminStoresGridLoadAfterSearchButton" />
30
+ <click selector =" {{AdminStoresGridSection.storeGrpNameInFirstRow}}" stepKey =" clickOnstoreGrpNameInFirstRow" />
31
+ <waitForPageLoad stepKey =" waitForPageAdminSystemStoreLoad1" />
32
+ <selectOption userInput =" Default Category" selector =" {{AdminNewStoreGroupSection.storeRootCategoryDropdown}}" stepKey =" selectOptionDefaultCategory" />
33
+ <click selector =" {{AdminStoreGroupActionsSection.saveButton}}" stepKey =" clickSaveStoreButton" />
34
+ <click selector =" {{AdminConfirmationModalSection.ok}}" stepKey =" clickOkOnModalDialog2" />
35
+ <actionGroup ref =" DeleteCategory" stepKey =" deleteCreatedNewRootCategory" >
36
+ <argument name =" categoryEntity" value =" NewRootCategory" />
37
+ </actionGroup >
38
+ <actionGroup ref =" logout" stepKey =" logout2" />
39
+ </after >
20
40
<actionGroup ref =" LoginAsAdmin" stepKey =" loginAsAdmin1" />
21
41
<amOnPage url =" {{AdminCategoryPage.url}}" stepKey =" amOnAdminCategoryPage" />
22
42
<scrollToTopOfPage stepKey =" scrollToTopOfPage1" />
47
67
<click selector =" {{AdminStoresGridSection.storeGrpNameInFirstRow}}" stepKey =" clickOnstoreGrpNameInFirstRow" />
48
68
<waitForPageLoad stepKey =" waitForPageAdminStoresGroupEditLoad" />
49
69
<selectOption userInput =" {{NewRootCategory.name}}" selector =" {{AdminNewStoreGroupSection.storeRootCategoryDropdown}}" stepKey =" selectOptionCreatedNewRootCategory" />
50
- <click selector =" {{AdminNewStoreGroupActionsSection .saveButton}}" stepKey =" clickSaveStoreButton" />
70
+ <click selector =" {{AdminStoreGroupActionsSection .saveButton}}" stepKey =" clickSaveStoreButton" />
51
71
<click selector =" {{AdminConfirmationModalSection.ok}}" stepKey =" clickOkOnModalDialog1" />
52
- <actionGroup ref =" logout" stepKey =" logout " />
72
+ <actionGroup ref =" logout" stepKey =" logout1 " />
53
73
<!-- Go to storefront and verify created subcategory on frontend-->
54
74
<amOnPage url =" {{StorefrontHomePage.url}}" stepKey =" goToStorefrontPage" />
55
75
<waitForPageLoad stepKey =" waitForPageAdminSystemStoreLoad2" />
59
79
<actionGroup ref =" CheckCategoryOnStorefront" stepKey =" checkCreatedSubcategory2OnFrontend" >
60
80
<argument name =" categoryEntity" value =" SubCategoryWithParent" />
61
81
</actionGroup >
62
- <!-- Delete all created data during the test execution and assign Default Root Category to Store-->
63
- <after >
64
- <actionGroup ref =" LoginAsAdmin" stepKey =" loginAsAdmin2" />
65
- <amOnPage url =" {{AdminSystemStorePage.url}}" stepKey =" amOnPageAdminSystemStore" />
66
- <waitForPageLoad stepKey =" waitForPageAdminSystemStoreLoad" />
67
- <click selector =" {{AdminStoresGridSection.resetButton}}" stepKey =" clickOnResetButton" />
68
- <waitForPageLoad time =" 10" stepKey =" waitForPageAdminStoresGridLoadAfterResetButton" />
69
- <fillField selector =" {{AdminStoresGridSection.storeGrpFilterTextField}}" userInput =" Main Website Store" stepKey =" fillFieldOnWebsiteStore" />
70
- <click selector =" {{AdminStoresGridSection.searchButton}}" stepKey =" clickOnSearchButton" />
71
- <waitForPageLoad stepKey =" waitForPageAdminStoresGridLoadAfterSearchButton" />
72
- <click selector =" {{AdminStoresGridSection.storeGrpNameInFirstRow}}" stepKey =" clickOnstoreGrpNameInFirstRow" />
73
- <waitForPageLoad stepKey =" waitForPageAdminSystemStoreLoad1" />
74
- <selectOption userInput =" Default Category" selector =" {{AdminNewStoreGroupSection.storeRootCategoryDropdown}}" stepKey =" selectOptionDefaultCategory" />
75
- <click selector =" {{AdminNewStoreGroupActionsSection.saveButton}}" stepKey =" clickSaveStoreButton" />
76
- <click selector =" {{AdminConfirmationModalSection.ok}}" stepKey =" clickOkOnModalDialog2" />
77
- <actionGroup ref =" DeleteCategory" stepKey =" deleteCreatedNewRootCategory" >
78
- <argument name =" categoryEntity" value =" NewRootCategory" />
79
- </actionGroup >
80
- <actionGroup ref =" logout" stepKey =" logout" />
81
- </after >
82
82
</test >
83
83
</tests >
0 commit comments