|
107 | 107 | </actionGroup> |
108 | 108 | <!-- Add images for ChildProduct1 --> |
109 | 109 | <actionGroup ref="AddProductImageActionGroup" stepKey="addChildProduct1ProductImage"> |
110 | | - <argument name="image" value="TestImageNew"/> |
| 110 | + <argument name="image" value="ProductImage"/> |
111 | 111 | </actionGroup> |
112 | 112 | <actionGroup ref="AddProductImageActionGroup" stepKey="addChildProduct1Magento2"> |
113 | 113 | <argument name="image" value="Magento2"/> |
|
127 | 127 | <argument name="storeViewName" value="'Default Store View'"/> |
128 | 128 | </actionGroup> |
129 | 129 | <!-- Add image for ChildProduct2 --> |
130 | | - <actionGroup ref="AddProductImageActionGroup" stepKey="addChildProduct2TestImageNew"> |
131 | | - <argument name="image" value="TestImageNew"/> |
| 130 | + <actionGroup ref="AddProductImageActionGroup" stepKey="addChildProduct2ProductImage"> |
| 131 | + <argument name="image" value="ProductImage"/> |
132 | 132 | </actionGroup> |
133 | 133 | <!-- Save changes fot ChildProduct2 --> |
134 | 134 | <actionGroup ref="SaveProductFormActionGroup" stepKey="saveChildProduct2Product"/> |
|
161 | 161 | <argument name="attributeLabel" value="$$createConfigProductAttribute.default_frontend_label$$"/> |
162 | 162 | <argument name="optionLabel" value="$$getConfigAttributeOption1.label$$"/> |
163 | 163 | </actionGroup> |
| 164 | + <waitForAjaxLoad stepKey="waitForAjaxLoadForOption1"/> |
| 165 | + <waitForElementNotVisible selector="{{StorefrontProductMediaSection.gallerySpinner}}" stepKey="waitForGallerySpinnerDisappearForOption1"/> |
164 | 166 | <!-- Check fotorama thumbnail images (first option selected) --> |
| 167 | + <actionGroup ref="StorefrontAssertFotoramaImageAvailabilityActionGroup" stepKey="seeProductImageForFirstOption"> |
| 168 | + <argument name="fileName" value="{{ProductImage.filename}}"/> |
| 169 | + </actionGroup> |
165 | 170 | <actionGroup ref="StorefrontAssertFotoramaImageAvailabilityActionGroup" stepKey="seeMagento3ForFirstOption"> |
166 | 171 | <argument name="fileName" value="{{Magento3.filename}}"/> |
167 | 172 | </actionGroup> |
168 | 173 | <actionGroup ref="StorefrontAssertFotoramaImageAvailabilityActionGroup" stepKey="seeTestImageAdobeForFirstOption"> |
169 | 174 | <argument name="fileName" value="{{TestImageAdobe.filename}}"/> |
170 | 175 | </actionGroup> |
171 | | - <actionGroup ref="StorefrontAssertFotoramaImageAvailabilityActionGroup" stepKey="seeProductImageForFirstOption"> |
172 | | - <argument name="fileName" value="{{TestImageNew.filename}}"/> |
173 | | - </actionGroup> |
174 | 176 | <!-- Check active fotorama thumbnail image (first option selected) --> |
175 | 177 | <actionGroup ref="StorefrontAssertActiveProductImageActionGroup" stepKey="seeActiveMagento2ForFirstOption"> |
176 | 178 | <argument name="fileName" value="{{Magento2.filename}}"/> |
|
180 | 182 | <argument name="attributeLabel" value="$$createConfigProductAttribute.default_frontend_label$$"/> |
181 | 183 | <argument name="optionLabel" value="$$getConfigAttributeOption2.label$$"/> |
182 | 184 | </actionGroup> |
| 185 | + <waitForAjaxLoad stepKey="waitForAjaxLoadForOption2"/> |
| 186 | + <waitForElementNotVisible selector="{{StorefrontProductMediaSection.gallerySpinner}}" stepKey="waitForGallerySpinnerDisappearForOption2"/> |
183 | 187 | <!-- Check fotorama thumbnail images (second option selected) --> |
184 | 188 | <actionGroup ref="StorefrontAssertFotoramaImageAvailabilityActionGroup" stepKey="seeMagento3ForSecondOption"> |
185 | 189 | <argument name="fileName" value="{{Magento3.filename}}"/> |
|
188 | 192 | <argument name="fileName" value="{{TestImageAdobe.filename}}"/> |
189 | 193 | </actionGroup> |
190 | 194 | <!-- Check active fotorama thumbnail image (second option selected) --> |
191 | | - <actionGroup ref="StorefrontAssertActiveProductImageActionGroup" stepKey="seeActiveTestImageNewForSecondOption"> |
192 | | - <argument name="fileName" value="{{TestImageNew.filename}}"/> |
| 195 | + <actionGroup ref="StorefrontAssertActiveProductImageActionGroup" stepKey="seeActiveProductImageForSecondOption"> |
| 196 | + <argument name="fileName" value="{{ProductImage.filename}}"/> |
193 | 197 | </actionGroup> |
194 | 198 | </test> |
195 | 199 | </tests> |
0 commit comments