|
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"/> |
|
102 | 102 | <see selector="{{StorefrontCategoryMainSection.productLink}}" userInput="{{simpleProductRegularPrice245InStock.name}}" stepKey="seeSimpleProductNameOnCategoryPage"/> |
103 | 103 |
|
104 | 104 | <!-- Verify customer see updated simple product (from the above step) on the storefront page --> |
105 | | - <amOnPage url="{{StorefrontProductPage.url(simpleProductRegularPrice245InStock.urlKey)}}" stepKey="goToProductPage"/> |
106 | | - <waitForPageLoad stepKey="waitForStorefrontProductPageLoad"/> |
107 | | - <see selector="{{StorefrontProductInfoMainSection.productName}}" userInput="{{simpleProductRegularPrice245InStock.name}}" stepKey="seeSimpleProductNameOnStoreFrontPage"/> |
108 | | - <see selector="{{StorefrontProductInfoMainSection.productPrice}}" userInput="{{simpleProductRegularPrice245InStock.price}}" stepKey="seeSimpleProductPriceOnStoreFrontPage"/> |
| 105 | + <actionGroup ref="OpenStoreFrontProductPageActionGroup" stepKey="goToProductPage"> |
| 106 | + <argument name="productUrlKey" value="{{simpleProductRegularPrice245InStock.urlKey}}"/> |
| 107 | + </actionGroup> |
| 108 | + <comment userInput="Comment is added to preserve the step key for backward compatibilityr" stepKey="waitForStorefrontProductPageLoad"/> |
| 109 | + |
| 110 | + <actionGroup ref="StorefrontAssertProductNameOnProductPageActionGroup" stepKey="seeSimpleProductNameOnStoreFrontPage"> |
| 111 | + <argument name="productName" value="{{simpleProductRegularPrice245InStock.name}}"/> |
| 112 | + </actionGroup> |
| 113 | + |
| 114 | + <actionGroup ref="StorefrontAssertProductPriceOnProductPageActionGroup" stepKey="seeSimpleProductPriceOnStoreFrontPage"> |
| 115 | + <argument name="productPrice" value="{{simpleProductRegularPrice245InStock.price}}"/> |
| 116 | + </actionGroup> |
| 117 | + |
109 | 118 | <actionGroup ref="StorefrontAssertProductSkuOnProductPageActionGroup" stepKey="seeSimpleProductSkuOnStoreFrontPage"> |
110 | 119 | <argument name="productSku" value="{{simpleProductRegularPrice245InStock.sku}}"/> |
111 | 120 | </actionGroup> |
112 | | - <grabTextFrom selector="{{StorefrontProductInfoMainSection.productStockStatus}}" stepKey="productStockAvailableStatus"/> |
113 | | - <assertEquals stepKey="assertStockAvailableOnProductPage"> |
114 | | - <expectedResult type="string">{{simpleProductRegularPrice245InStock.storefrontStatus}}</expectedResult> |
115 | | - <actualResult type="variable">productStockAvailableStatus</actualResult> |
116 | | - </assertEquals> |
117 | | - <grabTextFrom selector="{{StorefrontProductInfoMainSection.productPrice}}" stepKey="productPriceAmount"/> |
118 | | - <assertEquals stepKey="assertOldPriceTextOnProductPage"> |
119 | | - <expectedResult type="string">${{simpleProductRegularPrice245InStock.price}}</expectedResult> |
120 | | - <actualResult type="variable">productPriceAmount</actualResult> |
121 | | - </assertEquals> |
| 121 | + |
| 122 | + <comment userInput="Comment is added to preserve the step key for backward compatibilityr" stepKey="productStockAvailableStatus"/> |
| 123 | + <actionGroup ref="AssertStorefrontProductStockStatusOnProductPageActionGroup" stepKey="assertStockAvailableOnProductPage"> |
| 124 | + <argument name="productStockStatus" value="{{simpleProductRegularPrice245InStock.storefrontStatus}}"/> |
| 125 | + </actionGroup> |
| 126 | + <comment userInput="Comment is added to preserve the step key for backward compatibilityr" stepKey="productPriceAmount"/> |
| 127 | + <comment userInput="Comment is added to preserve the step key for backward compatibilityr" stepKey="assertOldPriceTextOnProductPage"/> |
122 | 128 |
|
123 | 129 | <!--Verify customer see updated simple product link on magento storefront page and is searchable by sku --> |
124 | 130 | <amOnPage url="{{StorefrontProductPage.url(simpleProductRegularPrice245InStock.urlKey)}}" stepKey="goToMagentoStorefrontPage"/> |
|
0 commit comments