Skip to content

Commit 3235ede

Browse files
committed
Fix functional tests
1 parent 6b8ecfe commit 3235ede

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

dev/tests/functional/tests/app/Magento/ProductVideo/Test/TestCase/UpdateSimpleProductEntityTest.xml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,34 @@
77
-->
88
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../../vendor/magento/mtf/etc/variations.xsd">
99
<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>
1030
<variation name="AddVideoToPCFTestVariation1">
1131
<data name="description" xsi:type="string">Add youtube video with all available fields filled in</data>
1232
<data name="initialProduct/dataset" xsi:type="string">product_with_category</data>
1333
<data name="product/data/sku" xsi:type="string">simple_product_with_category_%isolation%</data>
1434
<data name="product/data/media_gallery/images/0/video_url" xsi:type="string">https://youtu.be/WMp2PvU2qi8</data>
1535
<data name="product/data/media_gallery/images/0/video_title" xsi:type="string">Foo Test 1</data>
1636
<data name="product/data/media_gallery/images/0/video_description" xsi:type="string">This is a test "Foo Test 1"</data>
17-
<data name="configData" xsi:type="string">play_if_base,youtube_api_key</data>
37+
<data name="configData" xsi:type="string">youtube_api_key,play_if_base</data>
1838
<constraint name="Magento\ProductVideo\Test\Constraint\AssertVideoCategoryView" />
1939
<constraint name="Magento\ProductVideo\Test\Constraint\AssertVideoProductView" />
2040
<constraint name="Magento\Catalog\Test\Constraint\AssertProductForm" />

0 commit comments

Comments
 (0)