|
22 | 22 | </annotations>
|
23 | 23 |
|
24 | 24 | <before>
|
25 |
| - <createData entity="ProductVideoYoutubeApiKeyConfig" stepKey="setupYoutubeApiKey"/> |
26 | 25 | <!--Create 1 configurable product -->
|
27 | 26 | <createData entity="ApiConfigurableProductWithDescription" stepKey="createConfigurableProduct"/>
|
28 | 27 | <!-- Create product swatch attribute with 2 variations -->
|
|
65 | 64 | <argument name="image" value="Magento3"/>
|
66 | 65 | </actionGroup>
|
67 | 66 | <actionGroup ref="AdminAddProductVideoWithPreviewActionGroup" stepKey="addVideoToConfigurableProduct">
|
| 67 | + <argument name="video" value="VimeoProductVideo"/> |
68 | 68 | <argument name="image" value="{{TestImageNew.file}}"/>
|
69 | 69 | </actionGroup>
|
70 |
| - <actionGroup ref="AssertProductVideoAdminProductPageActionGroup" stepKey="assertVideoAddedToConfigurableProduct"/> |
| 70 | + <actionGroup ref="AssertProductVideoAdminProductPageActionGroup" stepKey="assertVideoAddedToConfigurableProduct"> |
| 71 | + <argument name="video" value="VimeoProductVideo"/> |
| 72 | + </actionGroup> |
71 | 73 | <actionGroup ref="SaveConfigurableProductAddToCurrentAttributeSetActionGroup" stepKey="saveConfigurableProduct"/>
|
72 | 74 |
|
73 | 75 | <!-- Load media for configurable product variation option1 -->
|
|
81 | 83 | <argument name="image" value="TestImageNew"/>
|
82 | 84 | </actionGroup>
|
83 | 85 | <actionGroup ref="AdminAddProductVideoWithPreviewActionGroup" stepKey="addVideoToConfigurableProductVariationOption1">
|
| 86 | + <argument name="video" value="VimeoProductVideo"/> |
84 | 87 | <argument name="image" value="{{placeholderSmallImage.file}}"/>
|
85 | 88 | </actionGroup>
|
86 |
| - <actionGroup ref="AssertProductVideoAdminProductPageActionGroup" stepKey="assertVideoAddedToConfigurableProductVariationOption1"/> |
| 89 | + <actionGroup ref="AssertProductVideoAdminProductPageActionGroup" stepKey="assertVideoAddedToConfigurableProductVariationOption1"> |
| 90 | + <argument name="video" value="VimeoProductVideo"/> |
| 91 | + </actionGroup> |
87 | 92 | <actionGroup ref="SaveProductFormActionGroup" stepKey="saveConfigurableProductVariationOption1"/>
|
88 | 93 |
|
89 | 94 | <!-- Load media for configurable product variation option3 -->
|
90 | 95 | <actionGroup ref="FilterAndSelectProductActionGroup" stepKey="openConfigurableProductVariationOption3">
|
91 | 96 | <argument name="productSku" value="$createConfigurableProduct.sku$-$swatchAttributeThirdOption.option[store_labels][0][label]$"/>
|
92 | 97 | </actionGroup>
|
93 | 98 | <actionGroup ref="AdminAddProductVideoWithPreviewActionGroup" stepKey="addVideoToConfigurableProductVariationOption3">
|
| 99 | + <argument name="video" value="VimeoProductVideo"/> |
94 | 100 | <argument name="image" value="{{Magento3.file}}"/>
|
95 | 101 | </actionGroup>
|
96 |
| - <actionGroup ref="AssertProductVideoAdminProductPageActionGroup" stepKey="assertVideoAddedToConfigurableProductVariationOption3"/> |
| 102 | + <actionGroup ref="AssertProductVideoAdminProductPageActionGroup" stepKey="assertVideoAddedToConfigurableProductVariationOption3"> |
| 103 | + <argument name="video" value="VimeoProductVideo"/> |
| 104 | + </actionGroup> |
97 | 105 | <actionGroup ref="AddProductImageActionGroup" stepKey="addSecondImageToConfigurableProductVariationOption3">
|
98 | 106 | <argument name="image" value="TestImageAdobe"/>
|
99 | 107 | </actionGroup>
|
100 | 108 | <actionGroup ref="AdminAddProductVideoWithPreviewActionGroup" stepKey="addSecondVideoToConfigurableProductVariationOption3">
|
| 109 | + <argument name="video" value="VimeoProductVideo"/> |
101 | 110 | <argument name="image" value="{{MagentoLogo.file}}"/>
|
102 | 111 | </actionGroup>
|
103 |
| - <actionGroup ref="AssertProductVideoAdminProductPageActionGroup" stepKey="assertSecondVideoAddedToConfigurableProductVariationOption3"/> |
| 112 | + <actionGroup ref="AssertProductVideoAdminProductPageActionGroup" stepKey="assertSecondVideoAddedToConfigurableProductVariationOption3"> |
| 113 | + <argument name="video" value="VimeoProductVideo"/> |
| 114 | + </actionGroup> |
104 | 115 | <actionGroup ref="SaveProductFormActionGroup" stepKey="saveConfigurableProductVariationOption3"/>
|
105 | 116 |
|
106 | 117 | <!-- Reindex invalidated indices after product attribute has been created -->
|
107 | 118 | <actionGroup ref="CliRunReindexUsingCronJobsActionGroup" stepKey="reindexInvalidatedIndicesAfterCreateAttributes"/>
|
108 | 119 | </before>
|
109 | 120 |
|
110 | 121 | <after>
|
111 |
| - <createData entity="DefaultProductVideoConfig" stepKey="resetStoreDefaultVideoConfig"/> |
112 | 122 | <actionGroup ref="DeleteProductUsingProductGridActionGroup" stepKey="deleteConfigurableProductsWithAllVariations">
|
113 | 123 | <argument name="product" value="$createConfigurableProduct$"/>
|
114 | 124 | </actionGroup>
|
|
0 commit comments