|
51 | 51 | <selectOption selector="{{AdminProductFormSection.stockStatus}}" userInput="{{simpleProductRegularPrice245InStock.status}}" stepKey="selectStockStatusInStock"/>
|
52 | 52 | <fillField selector="{{AdminProductFormSection.productWeight}}" userInput="{{simpleProductRegularPrice245InStock.weight}}" stepKey="fillSimpleProductWeight"/>
|
53 | 53 | <click selector="{{AdminProductFormSection.categoriesDropdown}}" stepKey="clickCategoriesDropDown"/>
|
54 |
| - <fillField selector="{{AdminProductFormSection.searchCategory}}" userInput="$$initialCategoryEntity.name$$" stepKey="fillSearchForInitialCategory" /> |
| 54 | + <fillField selector="{{AdminProductFormSection.searchCategory}}" userInput="$$initialCategoryEntity.name$$" stepKey="fillSearchForInitialCategory"/> |
55 | 55 | <waitForPageLoad stepKey="waitForCategory1"/>
|
56 | 56 | <click selector="{{AdminProductFormSection.selectCategory($$initialCategoryEntity.name$$)}}" stepKey="unselectInitialCategory"/>
|
57 |
| - <fillField selector="{{AdminProductFormSection.searchCategory}}" userInput="$$categoryEntity.name$$" stepKey="fillSearchCategory" /> |
| 57 | + <fillField selector="{{AdminProductFormSection.searchCategory}}" userInput="$$categoryEntity.name$$" stepKey="fillSearchCategory"/> |
58 | 58 | <waitForPageLoad stepKey="waitForCategory2"/>
|
59 | 59 | <click selector="{{AdminProductFormSection.selectCategory($$categoryEntity.name$$)}}" stepKey="clickOnCategory"/>
|
60 | 60 | <actionGroup ref="AdminSubmitCategoriesPopupActionGroup" stepKey="clickOnDoneAdvancedCategorySelect"/>
|
|
103 | 103 | <see selector="{{StorefrontCategoryMainSection.productLink}}" userInput="{{simpleProductRegularPrice245InStock.name}}" stepKey="seeSimpleProductNameOnCategoryPage"/>
|
104 | 104 |
|
105 | 105 | <!-- Verify customer see updated simple product (from the above step) on the storefront page -->
|
106 |
| - <amOnPage url="{{StorefrontProductPage.url(simpleProductRegularPrice245InStock.urlKey)}}" stepKey="goToProductPage"/> |
107 |
| - <waitForPageLoad stepKey="waitForStorefrontProductPageLoad"/> |
108 |
| - <see selector="{{StorefrontProductInfoMainSection.productName}}" userInput="{{simpleProductRegularPrice245InStock.name}}" stepKey="seeSimpleProductNameOnStoreFrontPage"/> |
109 |
| - <see selector="{{StorefrontProductInfoMainSection.productPrice}}" userInput="{{simpleProductRegularPrice245InStock.price}}" stepKey="seeSimpleProductPriceOnStoreFrontPage"/> |
| 106 | + <actionGroup ref="OpenStoreFrontProductPageActionGroup" stepKey="goToProductPage"> |
| 107 | + <argument name="productUrlKey" value="{{simpleProductRegularPrice245InStock.urlKey}}"/> |
| 108 | + </actionGroup> |
| 109 | + <comment userInput="Comment is added to preserve the step key for backward compatibilityr" stepKey="waitForStorefrontProductPageLoad"/> |
| 110 | + |
| 111 | + <actionGroup ref="StorefrontAssertProductNameOnProductPageActionGroup" stepKey="seeSimpleProductNameOnStoreFrontPage"> |
| 112 | + <argument name="productName" value="{{simpleProductRegularPrice245InStock.name}}"/> |
| 113 | + </actionGroup> |
| 114 | + |
| 115 | + <actionGroup ref="StorefrontAssertProductPriceOnProductPageActionGroup" stepKey="seeSimpleProductPriceOnStoreFrontPage"> |
| 116 | + <argument name="productPrice" value="{{simpleProductRegularPrice245InStock.price}}"/> |
| 117 | + </actionGroup> |
| 118 | + |
110 | 119 | <actionGroup ref="StorefrontAssertProductSkuOnProductPageActionGroup" stepKey="seeSimpleProductSkuOnStoreFrontPage">
|
111 | 120 | <argument name="productSku" value="{{simpleProductRegularPrice245InStock.sku}}"/>
|
112 | 121 | </actionGroup>
|
113 |
| - <grabTextFrom selector="{{StorefrontProductInfoMainSection.productStockStatus}}" stepKey="productStockAvailableStatus"/> |
114 |
| - <assertEquals stepKey="assertStockAvailableOnProductPage"> |
115 |
| - <expectedResult type="string">{{simpleProductRegularPrice245InStock.storefrontStatus}}</expectedResult> |
116 |
| - <actualResult type="variable">productStockAvailableStatus</actualResult> |
117 |
| - </assertEquals> |
118 |
| - <grabTextFrom selector="{{StorefrontProductInfoMainSection.productPrice}}" stepKey="productPriceAmount"/> |
119 |
| - <assertEquals stepKey="assertOldPriceTextOnProductPage"> |
120 |
| - <expectedResult type="string">${{simpleProductRegularPrice245InStock.price}}</expectedResult> |
121 |
| - <actualResult type="variable">productPriceAmount</actualResult> |
122 |
| - </assertEquals> |
| 122 | + |
| 123 | + <comment userInput="Comment is added to preserve the step key for backward compatibilityr" stepKey="productStockAvailableStatus"/> |
| 124 | + <actionGroup ref="AssertStorefrontProductStockStatusOnProductPageActionGroup" stepKey="assertStockAvailableOnProductPage"> |
| 125 | + <argument name="productStockStatus" value="{{simpleProductRegularPrice245InStock.storefrontStatus}}"/> |
| 126 | + </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"/> |
123 | 129 |
|
124 | 130 | <!--Verify customer see updated simple product link on magento storefront page and is searchable by sku -->
|
125 | 131 | <amOnPage url="{{StorefrontProductPage.url(simpleProductRegularPrice245InStock.urlKey)}}" stepKey="goToMagentoStorefrontPage"/>
|
|
0 commit comments