|
8 | 8 |
|
9 | 9 | <tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
10 | 10 | xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd"> |
11 | | - <test name="StorefrontGalleryConfigurableProductWithSeveralAttributesTest"> |
| 11 | + <test name="StorefrontGalleryConfigurableProductWithSeveralAttributesPrependMediaTest"> |
12 | 12 | <annotations> |
13 | 13 | <features value="ConfigurableProduct"/> |
14 | | - <stories value="Verify functionality of updating Gallery items on 'view Product' Storefront page for Configurable Product with several attributes of different types"/> |
| 14 | + <stories value="Prepend variation media on storefront"/> |
15 | 15 | <title value="Storefront Gallery - Configurable Product with several attributes: prepend variation media"/> |
16 | 16 | <description value="Storefront Gallery - Configurable Product with several attributes: prepend variation media"/> |
17 | 17 | <severity value="AVERAGE"/> |
|
20 | 20 | <group value="configurableProduct"/> |
21 | 21 | <group value="swatch"/> |
22 | 22 | </annotations> |
| 23 | + |
23 | 24 | <before> |
24 | | - <createData entity="ProductVideoYoutubeApiKeyConfig" stepKey="setupYoutubeApiKey"/> |
25 | 25 | <!--Create 1 configurable product with 2 variations--> |
26 | 26 | <createData entity="ApiConfigurableProductWithDescription" stepKey="createConfigurableProduct"/> |
27 | 27 | <!--Create product drop down attribute--> |
|
93 | 93 | <argument name="image" value="Magento3Image"/> |
94 | 94 | </actionGroup> |
95 | 95 | <actionGroup ref="AdminAddProductVideoWithPreviewActionGroup" stepKey="addVideoToConfigurableProduct"> |
| 96 | + <argument name="video" value="VimeoProductVideo"/> |
96 | 97 | <argument name="image" value="{{TestImageNew.file}}"/> |
97 | 98 | </actionGroup> |
98 | | - <actionGroup ref="assertProductVideoAdminProductPage" stepKey="assertVideoAddedToConfigurableProduct"/> |
| 99 | + <actionGroup ref="assertProductVideoAdminProductPage" stepKey="assertVideoAddedToConfigurableProduct"> |
| 100 | + <argument name="video" value="VimeoProductVideo"/> |
| 101 | + </actionGroup> |
99 | 102 | <actionGroup ref="SaveConfigurableProductAddToCurrentAttributeSetActionGroup" stepKey="saveConfigurableProduct"/> |
100 | 103 |
|
101 | 104 | <!-- Load media for configurable product variation option1-option1--> |
|
109 | 112 | <argument name="image" value="TestImageNew"/> |
110 | 113 | </actionGroup> |
111 | 114 | <actionGroup ref="AdminAddProductVideoWithPreviewActionGroup" stepKey="addVideoToConfigurableProductVariationOption1Option1"> |
| 115 | + <argument name="video" value="VimeoProductVideo"/> |
112 | 116 | <argument name="image" value="{{placeholderSmallImage.file}}"/> |
113 | 117 | </actionGroup> |
114 | | - <actionGroup ref="assertProductVideoAdminProductPage" stepKey="assertVideoAddedToConfigurableProductVariationOption1Option1"/> |
| 118 | + <actionGroup ref="assertProductVideoAdminProductPage" stepKey="assertVideoAddedToConfigurableProductVariationOption1Option1"> |
| 119 | + <argument name="video" value="VimeoProductVideo"/> |
| 120 | + </actionGroup> |
115 | 121 | <actionGroup ref="SaveProductFormActionGroup" stepKey="saveConfigurableProductVariationOption1Option1"/> |
116 | 122 |
|
117 | 123 | <!-- Load media for configurable product variation option1-option2--> |
118 | 124 | <actionGroup ref="filterAndSelectProduct" stepKey="openConfigurableProductVariationOption1Option2"> |
119 | 125 | <argument name="productSku" value="$createConfigurableProduct.sku$-$dropdownAttributeFirstOption.option[store_labels][0][label]$-$swatchAttributeSecondOption.option[store_labels][0][label]$"/> |
120 | 126 | </actionGroup> |
121 | 127 | <actionGroup ref="AdminAddProductVideoWithPreviewActionGroup" stepKey="addFirstVideoToConfigurableProductVariationOption1Option2"> |
| 128 | + <argument name="video" value="VimeoProductVideo"/> |
122 | 129 | <argument name="image" value="{{Magento3Image.file}}"/> |
123 | 130 | </actionGroup> |
124 | | - <actionGroup ref="assertProductVideoAdminProductPage" stepKey="assertFirstVideoAddedToConfigurableProductVariationOption1Option2"/> |
| 131 | + <actionGroup ref="assertProductVideoAdminProductPage" stepKey="assertFirstVideoAddedToConfigurableProductVariationOption1Option2"> |
| 132 | + <argument name="video" value="VimeoProductVideo"/> |
| 133 | + </actionGroup> |
125 | 134 | <actionGroup ref="addProductImage" stepKey="addFirstImageToConfigurableProductVariationOption1Option2"> |
126 | 135 | <argument name="image" value="MagentoLogo"/> |
127 | 136 | </actionGroup> |
128 | 137 | <actionGroup ref="AdminAddProductVideoWithPreviewActionGroup" stepKey="addSecondVideoToConfigurableProductVariationOption1Option2"> |
| 138 | + <argument name="video" value="VimeoProductVideo"/> |
129 | 139 | <argument name="image" value="{{placeholderThumbnailImage.file}}"/> |
130 | 140 | </actionGroup> |
131 | | - <actionGroup ref="assertProductVideoAdminProductPage" stepKey="assertSecondVideoAddedToConfigurableProductVariationOption1Option2"/> |
| 141 | + <actionGroup ref="assertProductVideoAdminProductPage" stepKey="assertSecondVideoAddedToConfigurableProductVariationOption1Option2"> |
| 142 | + <argument name="video" value="VimeoProductVideo"/> |
| 143 | + </actionGroup> |
132 | 144 | <actionGroup ref="SaveProductFormActionGroup" stepKey="saveConfigurableProductVariationOption1Option2"/> |
133 | 145 |
|
134 | 146 | <!-- Load media for configurable product variation option2-option2--> |
|
145 | 157 | </before> |
146 | 158 |
|
147 | 159 | <after> |
148 | | - <createData entity="DefaultProductVideoConfig" stepKey="resetStoreDefaultVideoConfig"/> |
149 | 160 | <actionGroup ref="deleteProductUsingProductGrid" stepKey="deleteConfigurableProductsWithAllVariations"> |
150 | 161 | <argument name="product" value="$createConfigurableProduct$"/> |
151 | 162 | </actionGroup> |
|
165 | 176 | </after> |
166 | 177 |
|
167 | 178 | <actionGroup ref="StorefrontOpenProductPageActionGroup" stepKey="openConfigurableProductPage"> |
168 | | - <argument name="productUrl" value="$$createConfigurableProduct.custom_attributes[url_key]$$"/> |
| 179 | + <argument name="productUrl" value="$createConfigurableProduct.custom_attributes[url_key]$"/> |
169 | 180 | </actionGroup> |
170 | 181 |
|
171 | 182 | <!--CASE 0: Selected options = none; Expected media : C1, C2, C3--> |
|
0 commit comments