|
57 | 57 | <comment userInput="Adding the comment to replace CliIndexerReindexActionGroup action group ('indexer:reindex' commands) for preserving Backward Compatibility" stepKey="reindexBeforeFlow"/>
|
58 | 58 | <actionGroup ref="AdminOpenCategoryPageActionGroup" stepKey="openAdminCategoryIndexPage"/>
|
59 | 59 | <actionGroup ref="AdminExpandCategoryTreeActionGroup" stepKey="clickOnExpandTree"/>
|
60 |
| - <click selector="{{AdminCategorySidebarTreeSection.categoryInTree(SimpleSubCategory.name)}}" stepKey="selectCreatedCategory"/> |
61 |
| - <waitForPageLoad stepKey="waitForTheCategoryPageToLoaded"/> |
| 60 | + <actionGroup ref="AdminCategoriesOpenCategoryActionGroup" stepKey="selectCreatedCategory"> |
| 61 | + <argument name="category" value="SimpleSubCategory"/> |
| 62 | + </actionGroup> |
| 63 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForTheCategoryPageToLoaded"/> |
62 | 64 | <!--Add Products in Category-->
|
63 |
| - <scrollTo selector="{{AdminCategoryBasicFieldSection.productsInCategory}}" x="0" y="-80" stepKey="scrollToProductInCategory"/> |
64 |
| - <click selector="{{AdminCategoryBasicFieldSection.productsInCategory}}" stepKey="clickOnProductInCategory"/> |
65 |
| - <scrollToTopOfPage stepKey="scrollOnTopOfPage"/> |
66 |
| - <conditionalClick selector="{{CatalogProductsSection.resetFilter}}" dependentSelector="{{CatalogProductsSection.resetFilter}}" visible="true" stepKey="clickOnResetFilter"/> |
67 |
| - <waitForPageLoad stepKey="waitForProductsToLoad"/> |
68 |
| - <fillField selector="{{AdminCategoryContentSection.productTableColumnName}}" userInput="$$createSimpleProduct.name$$" stepKey="selectProduct"/> |
69 |
| - <click selector="{{AdminCategoryContentSection.productSearch}}" stepKey="clickSearchButton"/> |
70 |
| - <waitForPageLoad stepKey="waitFroPageToLoad1"/> |
71 |
| - <scrollTo selector="{{AdminCategoryContentSection.productTableRow}}" stepKey="scrollToTableRow"/> |
72 |
| - <click selector="{{AdminCategoryContentSection.productTableRow}}" stepKey="selectProductFromTableRow"/> |
| 65 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="scrollToProductInCategory"/> |
| 66 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="clickOnProductInCategory"/> |
| 67 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="scrollOnTopOfPage"/> |
| 68 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="clickOnResetFilter"/> |
| 69 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForProductsToLoad"/> |
| 70 | + <actionGroup ref="AdminAddProductToCategoryActionGroup" stepKey="selectProduct"> |
| 71 | + <argument name="product" value="$$createSimpleProduct$$"/> |
| 72 | + </actionGroup> |
| 73 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="clickSearchButton"/> |
| 74 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitFroPageToLoad1"/> |
| 75 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="scrollToTableRow"/> |
| 76 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="selectProductFromTableRow"/> |
73 | 77 | <actionGroup ref="AdminSaveCategoryActionGroup" stepKey="saveSubCategory"/>
|
74 |
| - <seeElement selector="{{AdminCategoryMessagesSection.SuccessMessage}}" stepKey="seeSuccessMessage"/> |
| 78 | + <actionGroup ref="AssertMessageInAdminPanelActionGroup" stepKey="seeSuccessMessage"> |
| 79 | + <argument name="message" value="You saved the category."/> |
| 80 | + </actionGroup> |
75 | 81 | <comment userInput="Adding the comment to replace CliIndexerReindexActionGroup action group ('indexer:reindex' commands) for preserving Backward Compatibility" stepKey="reindex"/>
|
76 | 82 | <comment userInput="Adding the comment to replace CliCacheFlushActionGroup action group ('cache:flush' command) for preserving Backward Compatibility" stepKey="flushCache"/>
|
77 | 83 | <actionGroup ref="AdminOpenIndexManagementPageActionGroup" stepKey="openIndexManagementPage"/>
|
78 | 84 | <see stepKey="seeCategoryIndexStatus" selector="{{AdminIndexManagementSection.indexerStatus('Category Flat Data')}}" userInput="Ready"/>
|
79 | 85 | <!--Verify Product In Store Front-->
|
80 |
| - <amOnPage url="$$createSimpleProduct.custom_attributes[url_key]$$.html" stepKey="goToStorefrontPage"/> |
81 |
| - <waitForPageLoad stepKey="waitForPageToBeLoaded"/> |
| 86 | + <actionGroup ref="StorefrontOpenProductEntityPageActionGroup" stepKey="goToStorefrontPage"> |
| 87 | + <argument name="product" value="$createSimpleProduct$"/> |
| 88 | + </actionGroup> |
| 89 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForPageToBeLoaded"/> |
82 | 90 | <!--Verify product and category is visible in First Store View -->
|
83 |
| - <click stepKey="selectStoreSwitcher" selector="{{StorefrontHeaderSection.storeViewSwitcher}}"/> |
84 |
| - <click stepKey="selectFirstStoreView" selector="{{StorefrontHeaderSection.storeViewList(customStoreEN.name)}}"/> |
85 |
| - <waitForPageLoad stepKey="waitForFirstStoreView"/> |
86 |
| - <seeElement selector="{{StorefrontHeaderSection.NavigationCategoryByName($$category.name$$)}}" stepKey="seeCategoryOnNavigation"/> |
87 |
| - <see selector="{{StorefrontProductInfoMainSection.productName}}" userInput="{{defaultSimpleProduct.name}}" stepKey="assertProductName"/> |
| 91 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="selectStoreSwitcher"/> |
| 92 | + <actionGroup ref="StorefrontSwitchStoreViewActionGroup" stepKey="selectFirstStoreView"> |
| 93 | + <argument name="storeView" value="customStoreEN"/> |
| 94 | + </actionGroup> |
| 95 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForFirstStoreView"/> |
| 96 | + <!--<seeElement selector="{{StorefrontHeaderSection.NavigationCategoryByName($$category.name$$)}}" stepKey="seeCategoryOnNavigation"/>--> |
| 97 | + <actionGroup ref="StorefrontAssertCategoryNameIsShownInMenuActionGroup" stepKey="seeCategoryOnNavigation"> |
| 98 | + <argument name="categoryName" value="$$category.name$$"/> |
| 99 | + </actionGroup> |
| 100 | + <!--<see selector="{{StorefrontProductInfoMainSection.productName}}" userInput="{{defaultSimpleProduct.name}}" stepKey="assertProductName"/>--> |
| 101 | + <actionGroup ref="StorefrontAssertProductNameOnProductPageActionGroup" stepKey="assertProductName"> |
| 102 | + <argument name="productName" value="{{defaultSimpleProduct.name}}"/> |
| 103 | + </actionGroup> |
88 | 104 | <!--Verify product and category is visible in Second Store View -->
|
89 |
| - <click stepKey="selectStoreSwitcher1" selector="{{StorefrontHeaderSection.storeViewSwitcher}}"/> |
90 |
| - <click stepKey="selectSecondStoreView" selector="{{StorefrontHeaderSection.storeViewList(customStoreFR.name)}}"/> |
91 |
| - <waitForPageLoad stepKey="waitForSecondStoreView"/> |
92 |
| - <seeElement selector="{{StorefrontHeaderSection.NavigationCategoryByName($$category.name$$)}}" stepKey="seeCategoryOnNavigation1"/> |
93 |
| - <see selector="{{StorefrontProductInfoMainSection.productName}}" userInput="{{defaultSimpleProduct.name}}" stepKey="seeProductName"/> |
| 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 | + <actionGroup ref="StorefrontAssertCategoryNameIsShownInMenuActionGroup" stepKey="seeCategoryOnNavigation1"> |
| 111 | + <argument name="categoryName" value="$$category.name$"/> |
| 112 | + </actionGroup> |
| 113 | + <actionGroup ref="StorefrontAssertProductNameOnProductPageActionGroup" stepKey="seeProductName"> |
| 114 | + <argument name="productName" value="{{defaultSimpleProduct.name}}"/> |
| 115 | + </actionGroup> |
94 | 116 | </test>
|
95 | 117 | </tests>
|
0 commit comments