|
77 | 77 | <actionGroup ref="SaveAndApplyCatalogPriceRuleActionGroup" stepKey="saveAndApplyCatalogPriceRule"/>
|
78 | 78 | <magentoCLI command="indexer:reindex" stepKey="reindex"/>
|
79 | 79 | <magentoCLI command="cache:flush" stepKey="flushCache"/>
|
80 |
| - |
| 80 | + |
81 | 81 | <!-- Navigate to category on store front -->
|
82 | 82 | <amOnPage url="{{StorefrontProductPage.url($createCategory.name$)}}" stepKey="goToCategoryPage"/>
|
83 |
| - |
84 |
| - <!-- Check product 1 name on store front category page --> |
85 |
| - <actionGroup ref="AssertProductDetailsOnStorefrontActionGroup" stepKey="storefrontProduct1Name"> |
86 |
| - <argument name="productInfo" value="$createProduct1.name$"/> |
87 |
| - <argument name="productNumber" value="3"/> |
88 |
| - </actionGroup> |
89 | 83 |
|
90 | 84 | <!-- Check product 1 price on store front category page -->
|
91 |
| - <actionGroup ref="AssertProductDetailsOnStorefrontActionGroup" stepKey="storefrontProduct1Price"> |
92 |
| - <argument name="productInfo" value="$51.10"/> |
93 |
| - <argument name="productNumber" value="3"/> |
94 |
| - </actionGroup> |
| 85 | + <see selector="{{StorefrontCategoryProductSection.ProductInfoByName($createProduct1.name$)}}" userInput="$51.10" stepKey="storefrontProduct1Price"/> |
95 | 86 |
|
96 | 87 | <!-- Check product 1 regular price on store front category page -->
|
97 |
| - <actionGroup ref="AssertProductDetailsOnStorefrontActionGroup" stepKey="storefrontProduct1RegularPrice"> |
98 |
| - <argument name="productInfo" value="$56.78"/> |
99 |
| - <argument name="productNumber" value="3"/> |
100 |
| - </actionGroup> |
101 |
| - |
102 |
| - <!-- Check product 2 name on store front category page --> |
103 |
| - <actionGroup ref="AssertProductDetailsOnStorefrontActionGroup" stepKey="storefrontProduct2Name"> |
104 |
| - <argument name="productInfo" value="$createProduct2.name$"/> |
105 |
| - <argument name="productNumber" value="2"/> |
106 |
| - </actionGroup> |
| 88 | + <see selector="{{StorefrontCategoryProductSection.ProductInfoByName($createProduct1.name$)}}" userInput="$56.78" stepKey="storefrontProduct1RegularPrice"/> |
107 | 89 |
|
108 | 90 | <!-- Check product 2 price on store front category page -->
|
109 |
| - <actionGroup ref="AssertProductDetailsOnStorefrontActionGroup" stepKey="storefrontProduct2Price"> |
110 |
| - <argument name="productInfo" value="$51.10"/> |
111 |
| - <argument name="productNumber" value="2"/> |
112 |
| - </actionGroup> |
| 91 | + <see selector="{{StorefrontCategoryProductSection.ProductInfoByName($createProduct2.name$)}}" userInput="$51.10" stepKey="storefrontProduct2Price"/> |
113 | 92 |
|
114 |
| - <!-- Check product 2 price on store front category page --> |
115 |
| - <actionGroup ref="AssertProductDetailsOnStorefrontActionGroup" stepKey="storefrontProduct2RegularPrice"> |
116 |
| - <argument name="productInfo" value="$56.78"/> |
117 |
| - <argument name="productNumber" value="2"/> |
118 |
| - </actionGroup> |
119 |
| - |
120 |
| - <!-- Check product 3 name on store front category page --> |
121 |
| - <actionGroup ref="AssertProductDetailsOnStorefrontActionGroup" stepKey="storefrontProduct3Name"> |
122 |
| - <argument name="productInfo" value="$createProduct3.name$"/> |
123 |
| - <argument name="productNumber" value="1"/> |
124 |
| - </actionGroup> |
| 93 | + <!-- Check product 2 regular price on store front category page --> |
| 94 | + <see selector="{{StorefrontCategoryProductSection.ProductInfoByName($createProduct2.name$)}}" userInput="$56.78" stepKey="storefrontProduct2RegularPrice"/> |
125 | 95 |
|
126 | 96 | <!-- Check product 3 price on store front category page -->
|
127 |
| - <actionGroup ref="AssertProductDetailsOnStorefrontActionGroup" stepKey="storefrontProduct3Price"> |
128 |
| - <argument name="productInfo" value="$51.10"/> |
129 |
| - <argument name="productNumber" value="1"/> |
130 |
| - </actionGroup> |
| 97 | + <see selector="{{StorefrontCategoryProductSection.ProductInfoByName($createProduct3.name$)}}" userInput="$51.10" stepKey="storefrontProduct3Price"/> |
131 | 98 |
|
132 | 99 | <!-- Check product 3 regular price on store front category page -->
|
133 |
| - <actionGroup ref="AssertProductDetailsOnStorefrontActionGroup" stepKey="storefrontProduct3RegularPrice"> |
134 |
| - <argument name="productInfo" value="$56.78"/> |
135 |
| - <argument name="productNumber" value="1"/> |
136 |
| - </actionGroup> |
| 100 | + <see selector="{{StorefrontCategoryProductSection.ProductInfoByName($createProduct3.name$)}}" userInput="$56.78" stepKey="storefrontProduct3RegularPrice"/> |
137 | 101 |
|
138 | 102 | <!-- Navigate to product 1 on store front -->
|
139 | 103 | <amOnPage url="{{StorefrontProductPage.url($createProduct1.name$)}}" stepKey="goToProductPage1"/>
|
|
0 commit comments