|
36 | 36 | </after>
|
37 | 37 |
|
38 | 38 | <!-- Search default simple product in the grid -->
|
39 |
| - <actionGroup ref="AdminClearFiltersActionGroup" stepKey="openProductCatalogPage"/> |
40 |
| - <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="filterProductGrid"/> |
41 |
| - <actionGroup ref="OpenEditProductOnBackendActionGroup" stepKey="clickFirstRowToOpenDefaultSimpleProduct"> |
42 |
| - <argument name="product" value="$$initialSimpleProduct$$"/> |
| 39 | + <actionGroup ref="FilterAndSelectProductActionGroup" stepKey="openProductCatalogPage"> |
| 40 | + <argument name="productSku" value="$$initialSimpleProduct.sku$$"/> |
43 | 41 | </actionGroup>
|
44 |
| - <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitUntilProductIsOpened"/> |
| 42 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" |
| 43 | + stepKey="filterProductGrid"/> |
| 44 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" |
| 45 | + stepKey="clickFirstRowToOpenDefaultSimpleProduct"/> |
| 46 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" |
| 47 | + stepKey="waitUntilProductIsOpened"/> |
45 | 48 |
|
46 | 49 | <!-- Update simple product with regular price(out of stock) -->
|
47 |
| - <fillField selector="{{AdminProductFormSection.productName}}" userInput="{{simpleProductRegularPrice32503OutOfStock.name}}" stepKey="fillSimpleProductName"/> |
48 |
| - <fillField selector="{{AdminProductFormSection.productSku}}" userInput="{{simpleProductRegularPrice32503OutOfStock.sku}}" stepKey="fillSimpleProductSku"/> |
49 |
| - <fillField selector="{{AdminProductFormSection.productPrice}}" userInput="{{simpleProductRegularPrice32503OutOfStock.price}}" stepKey="fillSimpleProductPrice"/> |
50 |
| - <fillField selector="{{AdminProductFormSection.productQuantity}}" userInput="{{simpleProductRegularPrice32503OutOfStock.quantity}}" stepKey="fillSimpleProductQuantity"/> |
51 |
| - <selectOption selector="{{AdminProductFormSection.stockStatus}}" userInput="{{simpleProductRegularPrice32503OutOfStock.status}}" stepKey="selectStockStatusInStock"/> |
52 |
| - <fillField selector="{{AdminProductFormSection.productWeight}}" userInput="{{simpleProductRegularPrice32503OutOfStock.weight}}" stepKey="fillSimpleProductWeight"/> |
53 |
| - <click selector="{{AdminProductFormSection.categoriesDropdown}}" stepKey="clickCategoriesDropDown"/> |
54 |
| - <fillField selector="{{AdminProductFormSection.searchCategory}}" userInput="$$initialCategoryEntity.name$$" stepKey="fillSearchForInitialCategory"/> |
55 |
| - <waitForPageLoad stepKey="waitForCategory1"/> |
56 |
| - <click selector="{{AdminProductFormSection.selectCategory($$initialCategoryEntity.name$$)}}" stepKey="unselectInitialCategory"/> |
57 |
| - <fillField selector="{{AdminProductFormSection.searchCategory}}" userInput="$$categoryEntity.name$$" stepKey="fillSearchCategory"/> |
58 |
| - <waitForPageLoad stepKey="waitForCategory2"/> |
59 |
| - <click selector="{{AdminProductFormSection.selectCategory($$categoryEntity.name$$)}}" stepKey="clickOnCategory"/> |
| 50 | + <actionGroup ref="FillMainProductFormByStringActionGroup" stepKey="fillSimpleProductName"> |
| 51 | + <argument name="productName" value="{{simpleProductRegularPrice32503OutOfStock.name}}"/> |
| 52 | + <argument name="productSku" value="{{simpleProductRegularPrice32503OutOfStock.sku}}"/> |
| 53 | + <argument name="productPrice" value="{{simpleProductRegularPrice32503OutOfStock.price}}"/> |
| 54 | + <argument name="productQuantity" value="{{simpleProductRegularPrice32503OutOfStock.quantity}}"/> |
| 55 | + <argument name="productStatus" value="{{simpleProductRegularPrice32503OutOfStock.status}}"/> |
| 56 | + <argument name="productWeight" value="{{simpleProductRegularPrice32503OutOfStock.weight}}"/> |
| 57 | + </actionGroup> |
| 58 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" |
| 59 | + stepKey="fillSimpleProductSku"/> |
| 60 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" |
| 61 | + stepKey="fillSimpleProductPrice"/> |
| 62 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" |
| 63 | + stepKey="fillSimpleProductQuantity"/> |
| 64 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" |
| 65 | + stepKey="selectStockStatusInStock"/> |
| 66 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" |
| 67 | + stepKey="fillSimpleProductWeight"/> |
| 68 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" |
| 69 | + stepKey="clickCategoriesDropDown"/> |
| 70 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" |
| 71 | + stepKey="fillSearchForInitialCategory"/> |
| 72 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" |
| 73 | + stepKey="waitForCategory1"/> |
| 74 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" |
| 75 | + stepKey="unselectInitialCategory"/> |
| 76 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" |
| 77 | + stepKey="fillSearchCategory"/> |
| 78 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" |
| 79 | + stepKey="waitForCategory2"/> |
| 80 | + <actionGroup ref="SetCategoryByNameActionGroup" stepKey="clickOnCategory"> |
| 81 | + <argument name="categoryName" value="$$categoryEntity.name$$"/> |
| 82 | + </actionGroup> |
60 | 83 | <actionGroup ref="AdminSubmitCategoriesPopupActionGroup" stepKey="clickOnDoneAdvancedCategorySelect"/>
|
61 |
| - <click selector="{{AdminProductSEOSection.sectionHeader}}" stepKey="clickAdminProductSEOSection"/> |
62 |
| - <fillField selector="{{AdminProductSEOSection.urlKeyInput}}" userInput="{{simpleProductRegularPrice32503OutOfStock.urlKey}}" stepKey="fillUrlKey"/> |
| 84 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" |
| 85 | + stepKey="clickAdminProductSEOSection"/> |
| 86 | + <actionGroup ref="SetProductUrlKeyByStringActionGroup" stepKey="fillUrlKey"> |
| 87 | + <argument name="urlKey" value="{{simpleProductRegularPrice32503OutOfStock.urlKey}}"/> |
| 88 | + </actionGroup> |
63 | 89 | <scrollToTopOfPage stepKey="scrollToTopOfAdminProductFormSection"/>
|
64 |
| - |
65 | 90 | <actionGroup ref="AdminProductFormSaveButtonClickActionGroup" stepKey="clickSaveButton"/>
|
66 | 91 |
|
67 | 92 | <!-- Verify customer see success message -->
|
68 |
| - <see selector="{{AdminProductFormSection.successMessage}}" userInput="You saved the product." stepKey="seeAssertSimpleProductSaveSuccessMessage"/> |
| 93 | + <actionGroup ref="AssertMessageInAdminPanelActionGroup" stepKey="seeAssertSimpleProductSaveSuccessMessage"> |
| 94 | + <argument name="message" value="You saved the product."/> |
| 95 | + </actionGroup> |
69 | 96 |
|
70 | 97 | <!-- Search updated simple product(from above step) in the grid page -->
|
71 | 98 | <actionGroup ref="AdminProductCatalogPageOpenActionGroup" stepKey="openProductCatalogPageToSearchUpdatedSimpleProduct"/>
|
72 |
| - <conditionalClick selector="{{AdminProductGridFilterSection.clearAll}}" dependentSelector="{{AdminProductGridFilterSection.clearAll}}" visible="true" stepKey="clickClearAll"/> |
73 |
| - <click selector="{{AdminProductGridFilterSection.filters}}" stepKey="clickFiltersButton"/> |
74 |
| - <fillField selector="{{AdminProductGridFilterSection.nameFilter}}" userInput="{{simpleProductRegularPrice32503OutOfStock.name}}" stepKey="fillSimpleProductNameInNameFilter"/> |
75 |
| - <fillField selector="{{AdminProductGridFilterSection.skuFilter}}" userInput="{{simpleProductRegularPrice32503OutOfStock.sku}}" stepKey="fillProductSku"/> |
76 |
| - <click selector="{{AdminProductGridFilterSection.applyFilters}}" stepKey="clickApplyFiltersButton"/> |
77 |
| - <click selector="{{AdminProductGridFilterSection.nthRow('1')}}" stepKey="clickFirstRowToVerifyUpdatedSimpleProductVisibleInGrid"/> |
| 99 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" |
| 100 | + stepKey="clickClearAll"/> |
| 101 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" |
| 102 | + stepKey="clickFiltersButton"/> |
| 103 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" |
| 104 | + stepKey="fillSimpleProductNameInNameFilter"/> |
| 105 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" |
| 106 | + stepKey="fillProductSku"/> |
| 107 | + <actionGroup ref="FilterProductGridBySkuAndNameActionGroup" stepKey="clickApplyFiltersButton"> |
| 108 | + <argument name="product" value="simpleProductRegularPrice32503OutOfStock"/> |
| 109 | + </actionGroup> |
| 110 | + <click selector="{{AdminProductGridFilterSection.nthRow('1')}}" |
| 111 | + stepKey="clickFirstRowToVerifyUpdatedSimpleProductVisibleInGrid"/> |
78 | 112 | <waitForPageLoad stepKey="waitUntilSimpleProductPageIsOpened"/>
|
79 | 113 |
|
80 | 114 | <!-- Verify customer see updated simple product in the product form page -->
|
81 |
| - <seeInField selector="{{AdminProductFormSection.productName}}" userInput="{{simpleProductRegularPrice32503OutOfStock.name}}" stepKey="seeSimpleProductName"/> |
82 |
| - <seeInField selector="{{AdminProductFormSection.productSku}}" userInput="{{simpleProductRegularPrice32503OutOfStock.sku}}" stepKey="seeSimpleProductSku"/> |
83 |
| - <seeInField selector="{{AdminProductFormSection.productPrice}}" userInput="{{simpleProductRegularPrice32503OutOfStock.price}}" stepKey="seeSimpleProductPrice"/> |
84 |
| - <seeInField selector="{{AdminProductFormSection.productQuantity}}" userInput="{{simpleProductRegularPrice32503OutOfStock.quantity}}" stepKey="seeSimpleProductQuantity"/> |
85 |
| - <seeInField selector="{{AdminProductFormSection.productStockStatus}}" userInput="{{simpleProductRegularPrice32503OutOfStock.status}}" stepKey="seeSimpleProductStockStatus"/> |
86 |
| - <seeInField selector="{{AdminProductFormSection.productWeight}}" userInput="{{simpleProductRegularPrice32503OutOfStock.weight}}" stepKey="seeSimpleProductWeight"/> |
87 |
| - |
88 |
| - <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="clickCategoriesDropDownToVerify"/> |
89 |
| - <actionGroup ref="AssertAdminProductIsAssignedToCategoryActionGroup" stepKey="selectedCategories"> |
| 115 | + <actionGroup ref="AdminAssertProductInfoOnEditPageActionGroup" stepKey="seeSimpleProductName"> |
| 116 | + <argument name="productName" value="{{simpleProductRegularPrice32503OutOfStock.name}}"/> |
| 117 | + <argument name="productSku" value="{{simpleProductRegularPrice32503OutOfStock.sku}}"/> |
| 118 | + <argument name="productPrice" value="{{simpleProductRegularPrice32503OutOfStock.price}}"/> |
| 119 | + <argument name="productQuantity" value="{{simpleProductRegularPrice32503OutOfStock.quantity}}"/> |
| 120 | + <argument name="productStockStatus" value="{{simpleProductRegularPrice32503OutOfStock.status}}"/> |
| 121 | + <argument name="productWeight" value="{{simpleProductRegularPrice32503OutOfStock.weight}}"/> |
90 | 122 | <argument name="categoryName" value="$$categoryEntity.name$$"/>
|
91 | 123 | </actionGroup>
|
| 124 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" |
| 125 | + stepKey="seeSimpleProductSku"/> |
| 126 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" |
| 127 | + stepKey="seeSimpleProductPrice"/> |
| 128 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" |
| 129 | + stepKey="seeSimpleProductQuantity"/> |
| 130 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" |
| 131 | + stepKey="seeSimpleProductStockStatus"/> |
| 132 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" |
| 133 | + stepKey="seeSimpleProductWeight"/> |
| 134 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" |
| 135 | + stepKey="clickCategoriesDropDownToVerify"/> |
| 136 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" |
| 137 | + stepKey="selectedCategories"/> |
92 | 138 | <scrollTo selector="{{AdminProductSEOSection.sectionHeader}}" x="0" y="-80" stepKey="scrollToAdminProductSEOSection1"/>
|
93 | 139 | <click selector="{{AdminProductSEOSection.sectionHeader}}" stepKey="clickAdminProductSEOSection1"/>
|
94 |
| - <seeInField selector="{{AdminProductSEOSection.urlKeyInput}}" userInput="{{simpleProductRegularPrice32503OutOfStock.urlKey}}" stepKey="seeUrlKey"/> |
| 140 | + <seeInField selector="{{AdminProductSEOSection.urlKeyInput}}" userInput="{{simpleProductRegularPrice32503OutOfStock.urlKey}}" |
| 141 | + stepKey="seeUrlKey"/> |
95 | 142 |
|
96 | 143 | <!--Verify customer don't see updated simple product link on category page -->
|
97 | 144 | <actionGroup ref="StorefrontGoToCategoryPageActionGroup" stepKey="openCategoryPage">
|
|
106 | 153 | <actionGroup ref="OpenStoreFrontProductPageActionGroup" stepKey="goToProductPage">
|
107 | 154 | <argument name="productUrlKey" value="{{simpleProductRegularPrice32503OutOfStock.urlKey}}"/>
|
108 | 155 | </actionGroup>
|
109 |
| - <comment userInput="Comment is added to preserve the step key for backward compatibilityr" stepKey="waitForStorefrontProductPageLoad"/> |
110 |
| - |
111 |
| - <actionGroup ref="StorefrontAssertProductNameOnProductPageActionGroup" stepKey="seeSimpleProductNameOnStoreFrontPage"> |
| 156 | + <comment userInput="Comment is added to preserve the step key for backward compatibilityr" |
| 157 | + stepKey="waitForStorefrontProductPageLoad"/> |
| 158 | + <actionGroup ref="StorefrontAssertProductNameOnProductPageActionGroup" |
| 159 | + stepKey="seeSimpleProductNameOnStoreFrontPage"> |
112 | 160 | <argument name="productName" value="{{simpleProductRegularPrice32503OutOfStock.name}}"/>
|
113 | 161 | </actionGroup>
|
114 |
| - |
115 |
| - <actionGroup ref="StorefrontAssertProductPriceOnProductPageActionGroup" stepKey="seeSimpleProductPriceOnStoreFrontPage"> |
| 162 | + <actionGroup ref="StorefrontAssertProductPriceOnProductPageActionGroup" |
| 163 | + stepKey="seeSimpleProductPriceOnStoreFrontPage"> |
116 | 164 | <argument name="productPrice" value="{{simpleProductRegularPrice32503OutOfStock.price}}"/>
|
117 | 165 | </actionGroup>
|
118 |
| - |
119 |
| - <actionGroup ref="StorefrontAssertProductSkuOnProductPageActionGroup" stepKey="seeSimpleProductSkuOnStoreFrontPage"> |
| 166 | + <actionGroup ref="StorefrontAssertProductSkuOnProductPageActionGroup" |
| 167 | + stepKey="seeSimpleProductSkuOnStoreFrontPage"> |
120 | 168 | <argument name="productSku" value="{{simpleProductRegularPrice32503OutOfStock.sku}}"/>
|
121 | 169 | </actionGroup>
|
122 |
| - |
123 |
| - <comment userInput="Comment is added to preserve the step key for backward compatibilityr" stepKey="productStockAvailableStatus"/> |
124 |
| - <actionGroup ref="AssertStorefrontProductStockStatusOnProductPageActionGroup" stepKey="assertStockAvailableOnProductPage"> |
| 170 | + <comment userInput="Comment is added to preserve the step key for backward compatibilityr" |
| 171 | + stepKey="productStockAvailableStatus"/> |
| 172 | + <actionGroup ref="AssertStorefrontProductStockStatusOnProductPageActionGroup" |
| 173 | + stepKey="assertStockAvailableOnProductPage"> |
125 | 174 | <argument name="productStockStatus" value="{{simpleProductRegularPrice32503OutOfStock.storefrontStatus}}"/>
|
126 | 175 | </actionGroup>
|
127 |
| - <comment userInput="Comment is added to preserve the step key for backward compatibilityr" stepKey="productPriceAmount"/> |
128 |
| - <comment userInput="Comment is added to preserve the step key for backward compatibilityr" stepKey="assertOldPriceTextOnProductPage"/> |
| 176 | + <comment userInput="Comment is added to preserve the step key for backward compatibilityr" |
| 177 | + stepKey="productPriceAmount"/> |
| 178 | + <comment userInput="Comment is added to preserve the step key for backward compatibilityr" |
| 179 | + stepKey="assertOldPriceTextOnProductPage"/> |
129 | 180 |
|
130 | 181 | <!--Verify customer don't see updated simple product link on magento storefront page and is searchable by sku -->
|
131 |
| - <amOnPage url="{{StorefrontProductPage.url(simpleProductRegularPrice32503OutOfStock.urlKey)}}" stepKey="goToMagentoStorefrontPage"/> |
132 |
| - <waitForPageLoad stepKey="waitForStoreFrontProductPageLoad"/> |
| 182 | + <actionGroup ref="StorefrontOpenHomePageActionGroup" stepKey="goToMagentoStorefrontPage"/> |
| 183 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" |
| 184 | + stepKey="waitForStoreFrontProductPageLoad"/> |
133 | 185 | <actionGroup ref="StorefrontCheckQuickSearchStringActionGroup" stepKey="fillSimpleProductSkuInSearchTextBox">
|
134 | 186 | <argument name="phrase" value="{{simpleProductRegularPrice32503OutOfStock.sku}}"/>
|
135 | 187 | </actionGroup>
|
136 |
| - <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForSearchTextBox"/> |
137 |
| - <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="clickSearchTextBoxButton"/> |
138 |
| - <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForSearch"/> |
| 188 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" |
| 189 | + stepKey="waitForSearchTextBox"/> |
| 190 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" |
| 191 | + stepKey="clickSearchTextBoxButton"/> |
| 192 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" |
| 193 | + stepKey="waitForSearch"/> |
139 | 194 | <actionGroup ref="AssertStorefrontProductNameIsNotOnProductMainPageActionGroup" stepKey="dontSeeProductName">
|
140 | 195 | <argument name="productName" value="{{simpleProductRegularPrice32503OutOfStock.name}}"/>
|
141 | 196 | </actionGroup>
|
|
0 commit comments