|
29 | 29 | <deleteData stepKey="deleteSimpleProduct" createDataKey="simpleProduct"/>
|
30 | 30 | </after>
|
31 | 31 | <!--Create SubCategory-->
|
32 |
| - <actionGroup ref="AdminOpenCategoryPageActionGroup" stepKey="openAdminCategoryIndexPage"/> |
33 |
| - <click selector="{{AdminCategorySidebarActionSection.AddSubcategoryButton}}" stepKey="clickOnAddSubCategoryButton"/> |
34 |
| - <fillField selector="{{AdminCategoryBasicFieldSection.CategoryNameInput}}" userInput="{{_defaultCategory.name}}" stepKey="fillCategoryName"/> |
| 32 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="openAdminCategoryIndexPage"/> |
| 33 | + <actionGroup ref="GoToCreateCategoryPageActionGroup" stepKey="clickOnAddSubCategoryButton"/> |
| 34 | + <actionGroup ref="AdminChangeCategoryNameActionGroup" stepKey="fillCategoryName"/> |
35 | 35 | <checkOption selector="{{AdminCategoryBasicFieldSection.EnableCategory}}" stepKey="enableCategory"/>
|
36 | 36 | <!--Select Content and fill the options-->
|
37 |
| - <scrollTo selector="{{AdminCategoryContentSection.sectionHeader}}" x="0" y="-80" stepKey="scrollToContent"/> |
38 |
| - <click selector="{{AdminCategoryContentSection.sectionHeader}}" stepKey="selectContent"/> |
39 |
| - <scrollTo selector="{{AdminCategoryContentSection.AddCMSBlock}}" x="0" y="-80" stepKey="scrollToAddCMSBlock"/> |
40 |
| - <selectOption selector="{{AdminCategoryContentSection.AddCMSBlock}}" userInput="$$createDefaultCMSBlock.title$$" stepKey="selectCMSBlock"/> |
| 37 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="scrollToContent"/> |
| 38 | + <actionGroup ref="AdminCategoriesOpenContentSectionActionGroup" stepKey="selectContent"/> |
| 39 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="scrollToAddCMSBlock"/> |
| 40 | + <actionGroup ref="AdminCategoriesSetStaticBlockActionGroup" stepKey="selectCMSBlock"> |
| 41 | + <argument name="block" value="$$createDefaultCMSBlock$$"/> |
| 42 | + </actionGroup> |
| 43 | + |
41 | 44 | <!--Select Display Setting and fill the options-->
|
42 | 45 | <scrollTo selector="{{CategoryDisplaySettingsSection.DisplaySettingTab}}" x="0" y="-80" stepKey="scrollToDisplaySetting"/>
|
43 | 46 | <click selector="{{CategoryDisplaySettingsSection.DisplaySettingTab}}" stepKey="selectDisplaySetting"/>
|
|
52 | 55 | <click selector="{{CategoryDisplaySettingsSection.layeredNavigationPriceCheckBox}}" stepKey="enableLayeredNavigationPrice"/>
|
53 | 56 | <fillField selector="{{CategoryDisplaySettingsSection.layeredNavigationPriceInput}}" userInput="5.5" stepKey="fillThePrice"/>
|
54 | 57 | <!--Search the products and select the category products-->
|
55 |
| - <scrollTo selector="{{AdminCategoryBasicFieldSection.productsInCategory}}" x="0" y="-80" stepKey="scrollToProductInCategory"/> |
56 |
| - <click selector="{{AdminCategoryBasicFieldSection.productsInCategory}}" stepKey="clickOnProductInCategory"/> |
57 |
| - <fillField selector="{{AdminCategoryContentSection.productTableColumnName}}" userInput="$$simpleProduct.name$$" stepKey="selectProduct"/> |
58 |
| - <click selector="{{AdminCategoryContentSection.productSearch}}" stepKey="clickSearchButton"/> |
59 |
| - <click selector="{{AdminCategoryContentSection.productTableRow}}" stepKey="selectProductFromTableRow"/> |
| 58 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="scrollToProductInCategory"/> |
| 59 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="clickOnProductInCategory"/> |
| 60 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="selectProduct"/> |
| 61 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="clickSearchButton"/> |
| 62 | + <actionGroup ref="AdminAddProductToCategoryActionGroup" stepKey="selectProductFromTableRow"> |
| 63 | + <argument name="product" value="$$simpleProduct$$"/> |
| 64 | + </actionGroup> |
60 | 65 | <actionGroup ref="AdminSaveCategoryActionGroup" stepKey="clickSaveButton"/>
|
61 | 66 | <actionGroup ref="AssertAdminCategorySaveSuccessMessageActionGroup" stepKey="assertSuccessMessage"/>
|
62 | 67 | <waitForPageLoad stepKey="waitForPageTitleToBeSaved"/>
|
63 | 68 | <!--Verify the Category Title-->
|
64 |
| - <see selector="{{AdminCategoryContentSection.categoryPageTitle}}" userInput="{{_defaultCategory.name}}" stepKey="seePageTitle" /> |
| 69 | + <actionGroup ref="AssertAdminCategoryPageTitleActionGroup" stepKey="seePageTitle"> |
| 70 | + <argument name="categoryName" value="{{_defaultCategory.name}}"/> |
| 71 | + </actionGroup> |
65 | 72 | <grabFromCurrentUrl stepKey="categoryId" regex="#\/([0-9]*)?\/$#"/>
|
66 | 73 | <!-- Assert Redirect path, Target Path and Redirect type in grid -->
|
67 | 74 | <actionGroup ref="AdminSearchByRequestPathActionGroup" stepKey="searchByRequestPath">
|
|
73 | 80 | <comment userInput="Adding the comment to replace CliIndexerReindexActionGroup action group ('indexer:reindex' commands) for preserving Backward Compatibility" stepKey="reindex"/>
|
74 | 81 | <comment userInput="Adding the comment to replace CliCacheFlushActionGroup action group ('cache:flush' command) for preserving Backward Compatibility" stepKey="flushCache"/>
|
75 | 82 | <!--Verify Product in store front page-->
|
76 |
| - <amOnPage url="{{StorefrontCategoryPage.url(_defaultCategory.urlKey)}}" stepKey="amOnCategoryPage"/> |
77 |
| - <waitForPageLoad stepKey="waitForPageToBeLoaded"/> |
78 |
| - <see selector="{{StorefrontCategoryMainSection.CategoryTitle}}" userInput="{{_defaultCategory.name}}" stepKey="seeCategoryPageTitle"/> |
79 |
| - <seeElement selector="{{StorefrontHeaderSection.NavigationCategoryByName(_defaultCategory.name)}}" stepKey="seeCategoryOnNavigation"/> |
| 83 | + <actionGroup ref="CheckCategoryOnStorefrontActionGroup" stepKey="amOnCategoryPage"/> |
| 84 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForPageToBeLoaded"/> |
| 85 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="seeCategoryPageTitle"/> |
| 86 | + <actionGroup ref="StorefrontAssertCategoryNameIsShownInMenuActionGroup" stepKey="seeCategoryOnNavigation"> |
| 87 | + <argument name="categoryName" value="{{_defaultCategory.name}}"/> |
| 88 | + </actionGroup> |
80 | 89 | <waitForPageLoad stepKey="waitForProductToLoad"/>
|
81 | 90 | <seeElement selector="{{StorefrontCategoryMainSection.productLinkByHref($$simpleProduct.custom_attributes[url_key]$$)}}" stepKey="seeProductInCategory"/>
|
82 | 91 | </test>
|
|
0 commit comments