|
55 | 55 | <!-- Select created category and make category inactive-->
|
56 | 56 | <actionGroup ref="AdminOpenCategoryPageActionGroup" stepKey="openAdminCategoryIndexPage"/>
|
57 | 57 | <actionGroup ref="AdminExpandCategoryTreeActionGroup" stepKey="clickOnExpandTree"/>
|
58 |
| - <click selector="{{AdminCategorySidebarTreeSection.categoryInTree(SimpleSubCategory.name)}}" stepKey="selectCreatedCategory"/> |
59 |
| - <waitForPageLoad stepKey="waitForCategoryPageToLoad"/> |
60 |
| - <click selector="{{AdminCategoryBasicFieldSection.enableCategoryLabel}}" stepKey="disableActiveCategory"/> |
| 58 | + <actionGroup ref="AdminCategoriesOpenCategoryActionGroup" stepKey="selectCreatedCategory"> |
| 59 | + <argument name="category" value="$$createCategory$$"/> |
| 60 | + </actionGroup> |
| 61 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForCategoryPageToLoad"/> |
| 62 | + <actionGroup ref="AdminDisableActiveCategoryActionGroup" stepKey="disableActiveCategory"/> |
61 | 63 | <actionGroup ref="AdminSaveCategoryActionGroup" stepKey="saveSubCategory"/>
|
62 |
| - <seeElement selector="{{AdminCategoryMessagesSection.SuccessMessage}}" stepKey="seeSuccessMessage"/> |
63 |
| - <see selector="{{AdminCategoryContentSection.categoryPageTitle}}" userInput="{{SimpleSubCategory.name}}" stepKey="seeUpdatedCategoryTitle"/> |
| 64 | + <actionGroup ref="AssertMessageInAdminPanelActionGroup" stepKey="seeSuccessMessage"> |
| 65 | + <argument name="message" value="You saved the category."/> |
| 66 | + </actionGroup> |
| 67 | + <actionGroup ref="AssertAdminCategoryPageTitleActionGroup" stepKey="seeUpdatedCategoryTitle"> |
| 68 | + <argument name="categoryName" value="{{SimpleSubCategory.name}}"/> |
| 69 | + </actionGroup> |
64 | 70 | <dontSeeCheckboxIsChecked selector="{{AdminCategoryBasicFieldSection.enableCategoryLabel}}" stepKey="verifyInactiveIncludeInMenu"/>
|
65 | 71 | <actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindex">
|
66 | 72 | <argument name="indices" value="catalog_category_flat"/>
|
|
69 | 75 | <actionGroup ref="AdminOpenIndexManagementPageActionGroup" stepKey="openIndexManagementPage"/>
|
70 | 76 | <see stepKey="seeIndexStatus" selector="{{AdminIndexManagementSection.indexerStatus('Category Flat Data')}}" userInput="Ready"/>
|
71 | 77 | <!--Verify Category In Store Front-->
|
72 |
| - <amOnPage url="/$$createCategory.custom_attributes[url_key]$$.html" stepKey="openCategoryPage1"/> |
73 |
| - <waitForPageLoad stepKey="waitForCategoryStoreFrontPageToLoad"/> |
| 78 | + <actionGroup ref="StorefrontNavigateCategoryPageActionGroup" stepKey="openCategoryPage1"> |
| 79 | + <argument name="category" value="$createCategory$"/> |
| 80 | + </actionGroup> |
| 81 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForCategoryStoreFrontPageToLoad"/> |
| 82 | + |
74 | 83 | <!--Verify category is not visible in First Store View -->
|
75 |
| - <click stepKey="selectStoreSwitcher" selector="{{StorefrontHeaderSection.storeViewSwitcher}}"/> |
76 |
| - <click stepKey="selectForstStoreView" selector="{{StorefrontHeaderSection.storeViewList(customStoreEN.name)}}"/> |
77 |
| - <waitForPageLoad stepKey="waitForFirstStoreView"/> |
78 |
| - <dontSeeElement selector="{{StorefrontHeaderSection.NavigationCategoryByName($$createCategory.name$$)}}" stepKey="dontSeeCategoryOnNavigation"/> |
| 84 | + <!--<click stepKey="selectStoreSwitcher" selector="{{StorefrontHeaderSection.storeViewSwitcher}}"/>--> |
| 85 | + <!--<click stepKey="selectForstStoreView" selector="{{StorefrontHeaderSection.storeViewList(customStoreEN.name)}}"/>--> |
| 86 | + <!--<waitForPageLoad stepKey="waitForFirstStoreView"/>--> |
| 87 | + |
| 88 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="selectStoreSwitcher"/> |
| 89 | + <actionGroup ref="StorefrontSwitchStoreViewActionGroup" stepKey="selectForstStoreView"> |
| 90 | + <argument name="storeView" value="customStoreEN"/> |
| 91 | + </actionGroup> |
| 92 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForFirstStoreView"/> |
| 93 | + |
| 94 | + <!--<dontSeeElement selector="{{StorefrontHeaderSection.NavigationCategoryByName($$createCategory.name$$)}}" stepKey="dontSeeCategoryOnNavigation"/>--> |
79 | 95 | <seeElement selector="{{StorefrontBundledSection.pageNotFound}}" stepKey="seeWhoopsOurBadMessage"/>
|
| 96 | + <actionGroup ref="StorefrontAssertCategoryNameIsNotShownInMenuActionGroup" stepKey="dontSeeCategoryOnNavigation"> |
| 97 | + <argument name="categoryName" value="$$createCategory.name$$"/> |
| 98 | + </actionGroup> |
| 99 | + |
80 | 100 | <!--Verify category is not visible in Second Store View -->
|
81 |
| - <click stepKey="selectStoreSwitcher1" selector="{{StorefrontHeaderSection.storeViewSwitcher}}"/> |
82 |
| - <click stepKey="selectSecondStoreView" selector="{{StorefrontHeaderSection.storeViewList(customStoreFR.name)}}"/> |
83 |
| - <waitForPageLoad stepKey="waitForSecondstoreView"/> |
| 101 | + <!--<click stepKey="selectStoreSwitcher1" selector="{{StorefrontHeaderSection.storeViewSwitcher}}"/>--> |
| 102 | + <!--<click stepKey="selectSecondStoreView" selector="{{StorefrontHeaderSection.storeViewList(customStoreFR.name)}}"/>--> |
| 103 | + <!--<waitForPageLoad stepKey="waitForSecondstoreView"/>--> |
| 104 | + |
| 105 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="selectStoreSwitcher1"/> |
| 106 | + <actionGroup ref="StorefrontSwitchStoreViewActionGroup" stepKey="selectSecondStoreView"> |
| 107 | + <argument name="storeView" value="customStoreFR"/> |
| 108 | + </actionGroup> |
| 109 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForSecondstoreView"/> |
| 110 | + |
84 | 111 | <dontSeeElement selector="{{StorefrontHeaderSection.NavigationCategoryByName($$createCategory.name$$)}}" stepKey="dontSeeCategoryOnNavigation1"/>
|
85 | 112 | <seeElement selector="{{StorefrontBundledSection.pageNotFound}}" stepKey="seeWhoopsOurBadMessage1"/>
|
86 | 113 | </test>
|
|
0 commit comments