Skip to content

Commit ffdf92f

Browse files
MC-42448: [Magento Cloud] Issue with uploading same vimeo video for multiple products.
- Add MFTF test coverage
1 parent 7339324 commit ffdf92f

File tree

1 file changed

+56
-0
lines changed

1 file changed

+56
-0
lines changed
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
/**
4+
* Copyright © Magento, Inc. All rights reserved.
5+
* See COPYING.txt for license details.
6+
*/
7+
-->
8+
9+
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
11+
<test name="AdminUploadSameVimeoVideoForMultipleProductsTest">
12+
<annotations>
13+
<features value="ProductVideo"/>
14+
<stories value="Upload product video"/>
15+
<title value="Admin should be able to upload same Vimeo video for multiple products"/>
16+
<description value="Admin should be able to upload same Vimeo video for multiple products"/>
17+
<severity value="MAJOR"/>
18+
<testCaseId value="MC-42645"/>
19+
<useCaseId value="MC-42448"/>
20+
<group value="productVideo"/>
21+
</annotations>
22+
<before>
23+
<createData entity="ProductVideoYoutubeApiKeyConfig" stepKey="setYoutubeApiKeyConfig"/>
24+
<createData entity="SimpleProduct2" stepKey="createProduct1"/>
25+
<createData entity="SimpleProduct2" stepKey="createProduct2"/>
26+
<!-- Login to Admin page -->
27+
<actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>
28+
</before>
29+
<after>
30+
<createData entity="DefaultProductVideoConfig" stepKey="setYoutubeApiKeyDefaultConfig"/>
31+
<deleteData createDataKey="createProduct1" stepKey="deleteProduct1"/>
32+
<deleteData createDataKey="createProduct2" stepKey="deleteProduct2"/>
33+
<!-- Logout from Admin page -->
34+
<actionGroup ref="AdminLogoutActionGroup" stepKey="logoutFromAdmin"/>
35+
</after>
36+
37+
<!-- Open product 1 edit page -->
38+
<amOnPage url="{{AdminProductEditPage.url($createProduct1.id$)}}" stepKey="goToProduct1EditPage"/>
39+
<!-- Add product video -->
40+
<actionGroup ref="AddProductVideoActionGroup" stepKey="addProductVideoToProduct1">
41+
<argument name="video" value="VimeoProductVideo"/>
42+
</actionGroup>
43+
<!-- Save product form -->
44+
<actionGroup ref="SaveProductFormActionGroup" stepKey="saveProductFormOfProduct1"/>
45+
46+
<!-- Open product 2 edit page -->
47+
<amOnPage url="{{AdminProductEditPage.url($createProduct2.id$)}}" stepKey="goToProduct2EditPage"/>
48+
<!-- Add product video -->
49+
<actionGroup ref="AddProductVideoActionGroup" stepKey="saveProductFormOfProduct2">
50+
<argument name="video" value="VimeoProductVideo"/>
51+
</actionGroup>
52+
<!-- Save product form -->
53+
<actionGroup ref="SaveProductFormActionGroup" stepKey="saveProductFormOfSecondSimpleProduct"/>
54+
55+
</test>
56+
</tests>

0 commit comments

Comments
 (0)