|
7 | 7 | -->
|
8 | 8 | <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../../vendor/magento/mtf/etc/variations.xsd">
|
9 | 9 | <testCase name="Magento\Catalog\Test\TestCase\Product\UpdateSimpleProductEntityTest" summary="Add Video to PCF" ticketId="PV-1">
|
10 |
| - <variation name="DeleteVideoFromPCFTestVariation1"> |
11 |
| - <data name="description" xsi:type="string">Delete video youtube</data> |
12 |
| - <data name="initialProduct/dataset" xsi:type="string">product_with_video_youtube</data> |
13 |
| - <data name="product/data/sku" xsi:type="string">sku_simple_product_with_video_%isolation%</data> |
14 |
| - <data name="product/data/media_gallery/images" xsi:type="string" /> |
15 |
| - <constraint name="Magento\Catalog\Test\Constraint\AssertProductNoImageInGrid" /> |
16 |
| - <constraint name="Magento\Catalog\Test\Constraint\AssertProductForm" /> |
17 |
| - <constraint name="Magento\ProductVideo\Test\Constraint\AssertNoVideoCategoryView" /> |
18 |
| - <constraint name="Magento\ProductVideo\Test\Constraint\AssertNoVideoProductView" /> |
19 |
| - </variation> |
20 |
| - <variation name="DeleteVideoFromPCFTestVariation2"> |
21 |
| - <data name="description" xsi:type="string">Delete video vimeo</data> |
22 |
| - <data name="initialProduct/dataset" xsi:type="string">product_with_video_vimeo</data> |
23 |
| - <data name="product/data/sku" xsi:type="string">sku_simple_product_with_video_%isolation%</data> |
24 |
| - <data name="product/data/media_gallery/images" xsi:type="string" /> |
25 |
| - <constraint name="Magento\Catalog\Test\Constraint\AssertProductNoImageInGrid" /> |
26 |
| - <constraint name="Magento\Catalog\Test\Constraint\AssertProductForm" /> |
27 |
| - <constraint name="Magento\ProductVideo\Test\Constraint\AssertNoVideoCategoryView" /> |
28 |
| - <constraint name="Magento\ProductVideo\Test\Constraint\AssertNoVideoProductView" /> |
29 |
| - </variation> |
30 | 10 | <variation name="AddVideoToPCFTestVariation1">
|
31 | 11 | <data name="description" xsi:type="string">Add youtube video with all available fields filled in</data>
|
32 | 12 | <data name="initialProduct/dataset" xsi:type="string">product_with_category</data>
|
33 | 13 | <data name="product/data/sku" xsi:type="string">simple_product_with_category_%isolation%</data>
|
34 | 14 | <data name="product/data/media_gallery/images/0/video_url" xsi:type="string">https://youtu.be/WMp2PvU2qi8</data>
|
35 | 15 | <data name="product/data/media_gallery/images/0/video_title" xsi:type="string">Foo Test 1</data>
|
36 | 16 | <data name="product/data/media_gallery/images/0/video_description" xsi:type="string">This is a test "Foo Test 1"</data>
|
37 |
| - <data name="configData" xsi:type="string">youtube_api_key</data> |
| 17 | + <data name="configData" xsi:type="string">play_if_base,youtube_api_key</data> |
38 | 18 | <constraint name="Magento\ProductVideo\Test\Constraint\AssertVideoCategoryView" />
|
39 | 19 | <constraint name="Magento\ProductVideo\Test\Constraint\AssertVideoProductView" />
|
40 | 20 | <constraint name="Magento\Catalog\Test\Constraint\AssertProductForm" />
|
|
46 | 26 | <data name="product/data/media_gallery/images/0/video_url" xsi:type="string">https://vimeo.com/21776334</data>
|
47 | 27 | <data name="product/data/media_gallery/images/0/video_title" xsi:type="string">Foo Test 2</data>
|
48 | 28 | <data name="product/data/media_gallery/images/0/video_description" xsi:type="string">This is a test "Foo Test 2"</data>
|
| 29 | + <data name="configData" xsi:type="string">play_if_base</data> |
49 | 30 | <constraint name="Magento\ProductVideo\Test\Constraint\AssertVideoCategoryView" />
|
50 | 31 | <constraint name="Magento\ProductVideo\Test\Constraint\AssertVideoProductView" />
|
51 | 32 | <constraint name="Magento\Catalog\Test\Constraint\AssertProductForm" />
|
|
56 | 37 | <data name="product/data/sku" xsi:type="string">sku_simple_product_with_video_%isolation%</data>
|
57 | 38 | <data name="product/data/media_gallery/images/0/video_url" xsi:type="string">https://youtu.be/WMp2PvU2qi8</data>
|
58 | 39 | <data name="product/data/media_gallery/images/0/video_title" xsi:type="string">Foo Test 1</data>
|
59 |
| - <data name="configData" xsi:type="string">youtube_api_key</data> |
| 40 | + <data name="configData" xsi:type="string">youtube_api_key,play_if_base</data> |
60 | 41 | <constraint name="Magento\ProductVideo\Test\Constraint\AssertVideoCategoryView" />
|
61 | 42 | <constraint name="Magento\ProductVideo\Test\Constraint\AssertVideoProductView" />
|
62 | 43 | <constraint name="Magento\Catalog\Test\Constraint\AssertProductForm" />
|
|
66 | 47 | <data name="product/data/sku" xsi:type="string">simple_product_with_category_%isolation%</data>
|
67 | 48 | <data name="product/data/media_gallery/images/0/video_url" xsi:type="string">https://vimeo.com/21776334</data>
|
68 | 49 | <data name="product/data/media_gallery/images/0/video_title" xsi:type="string">Foo Test 2</data>
|
| 50 | + <data name="configData" xsi:type="string">play_if_base</data> |
69 | 51 | <constraint name="Magento\ProductVideo\Test\Constraint\AssertVideoCategoryView" />
|
70 | 52 | <constraint name="Magento\ProductVideo\Test\Constraint\AssertVideoProductView" />
|
71 | 53 | <constraint name="Magento\Catalog\Test\Constraint\AssertProductForm" />
|
|
75 | 57 | <data name="initialProduct/dataset" xsi:type="string">product_with_video_youtube</data>
|
76 | 58 | <data name="product/data/sku" xsi:type="string">sku_simple_product_with_video_%isolation%</data>
|
77 | 59 | <data name="product/data/media_gallery/images/0/video_url" xsi:type="string">https://youtu.be/bpOSxM0rNPM</data>
|
78 |
| - <data name="configData" xsi:type="string">youtube_api_key</data> |
| 60 | + <data name="configData" xsi:type="string">youtube_api_key,play_if_base</data> |
79 | 61 | <constraint name="Magento\Catalog\Test\Constraint\AssertProductForm" />
|
80 | 62 | </variation>
|
81 | 63 | <variation name="UpdateVideoInPCFTestVariation2">
|
82 | 64 | <data name="description" xsi:type="string">Edit vimeo URL</data>
|
83 | 65 | <data name="initialProduct/dataset" xsi:type="string">product_with_video_youtube</data>
|
84 | 66 | <data name="product/data/sku" xsi:type="string">sku_simple_product_with_video_%isolation%</data>
|
85 | 67 | <data name="productVideo/data/media_gallery/images/0/video_url" xsi:type="string">https://vimeo.com/16342611</data>
|
| 68 | + <data name="configData" xsi:type="string">play_if_base</data> |
86 | 69 | <constraint name="Magento\Catalog\Test\Constraint\AssertProductForm" />
|
87 | 70 | </variation>
|
88 | 71 | <variation name="UpdateVideoInPCFTestVariation3">
|
|
91 | 74 | <data name="product/data/sku" xsi:type="string">sku_simple_product_with_video_%isolation%</data>
|
92 | 75 | <data name="productVideo/data/media_gallery/images/0/video_title" xsi:type="string">Edit Test</data>
|
93 | 76 | <data name="productVideo/data/media_gallery/images/0/video_description" xsi:type="string">This is an edit test</data>
|
| 77 | + <data name="configData" xsi:type="string">play_if_base</data> |
94 | 78 | <constraint name="Magento\Catalog\Test\Constraint\AssertProductForm" />
|
95 | 79 | </variation>
|
96 | 80 | <variation name="UpdateVideoInPCFTestVariation4">
|
|
100 | 84 | <data name="productVideo/data/media_gallery/images/0/video_url" xsi:type="string">https://youtu.be/bpOSxM0rNPM</data>
|
101 | 85 | <data name="productVideo/data/media_gallery/images/0/video_title" xsi:type="string">Edit Test</data>
|
102 | 86 | <data name="productVideo/data/media_gallery/images/0/video_description" xsi:type="string">This is an edit test</data>
|
103 |
| - <data name="configData" xsi:type="string">youtube_api_key</data> |
| 87 | + <data name="configData" xsi:type="string">youtube_api_key,play_if_base</data> |
104 | 88 | <constraint name="Magento\Catalog\Test\Constraint\AssertProductForm" />
|
105 | 89 | </variation>
|
106 | 90 | <variation name="GetVideoInfoTestVariation1">
|
|
109 | 93 | <data name="product/data/sku" xsi:type="string">simple_product_with_category_%isolation%</data>
|
110 | 94 | <data name="product/data/media_gallery/images/0/video_url" xsi:type="string">https://youtu.be/WMp2PvU2qi8</data>
|
111 | 95 | <data name="video/video_title" xsi:type="string">Foo Fighters - Congregation</data>
|
112 |
| - <data name="configData" xsi:type="string">youtube_api_key</data> |
| 96 | + <data name="configData" xsi:type="string">youtube_api_key,play_if_base</data> |
113 | 97 | <constraint name="Magento\ProductVideo\Test\Constraint\AssertGetVideoInfoDataIsCorrect" />
|
114 | 98 | </variation>
|
115 | 99 | <variation name="GetVideoInfoTestVariation2">
|
|
118 | 102 | <data name="product/data/sku" xsi:type="string">simple_product_with_category_%isolation%</data>
|
119 | 103 | <data name="product/data/media_gallery/images/0/video_url" xsi:type="string">https://vimeo.com/21776334</data>
|
120 | 104 | <data name="video/video_title" xsi:type="string">Foo Fighters - "Walk" - Official Music Video (HD)</data>
|
| 105 | + <data name="configData" xsi:type="string">play_if_base</data> |
121 | 106 | <constraint name="Magento\ProductVideo\Test\Constraint\AssertGetVideoInfoDataIsCorrect" />
|
122 | 107 | </variation>
|
123 | 108 | </testCase>
|
|
0 commit comments