Skip to content

Commit f701123

Browse files
authored
ACQE-6133 : Create the deleted file
1 parent 345100a commit f701123

File tree

1 file changed

+62
-0
lines changed

1 file changed

+62
-0
lines changed
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
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="AdminAddDefaultImageSimpleProductTest">
12+
<annotations>
13+
<features value="Catalog"/>
14+
<title value="Storefront Fotorama arrows test"/>
15+
<description value="Check arrows next to the thumbs are not visible than there is room for all pictures."/>
16+
<severity value="BLOCKER"/>
17+
<group value="Catalog"/>
18+
<group value="cloud"/>
19+
</annotations>
20+
<before>
21+
<createData entity="_defaultCategory" stepKey="createCategory"/>
22+
<createData entity="_defaultProduct" stepKey="createProduct">
23+
<requiredEntity createDataKey="createCategory"/>
24+
</createData>
25+
<actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>
26+
</before>
27+
<after>
28+
<actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
29+
<deleteData createDataKey="createProduct" stepKey="deleteProduct"/>
30+
<deleteData createDataKey="createCategory" stepKey="deleteCategory"/>
31+
</after>
32+
33+
<!-- Open Product for edit -->
34+
<actionGroup ref="SearchForProductOnBackendActionGroup" stepKey="findCreatedProductInGrid">
35+
<argument name="product" value="$$createProduct$$"/>
36+
</actionGroup>
37+
<actionGroup ref="OpenEditProductOnBackendActionGroup" stepKey="goToEditProductPage">
38+
<argument name="product" value="$$createProduct$$"/>
39+
</actionGroup>
40+
41+
<!-- Add images to product -->
42+
<actionGroup ref="AddProductImageActionGroup" stepKey="addFirstImageToProduct">
43+
<argument name="image" value="MagentoLogo"/>
44+
</actionGroup>
45+
<actionGroup ref="AddProductImageActionGroup" stepKey="addSecondImageToProduct">
46+
<argument name="image" value="ProductImage"/>
47+
</actionGroup>
48+
<actionGroup ref="AddProductImageActionGroup" stepKey="addThirdImageToProduct">
49+
<argument name="image" value="TestImageNew"/>
50+
</actionGroup>
51+
<actionGroup ref="SaveProductFormActionGroup" stepKey="saveSimpleProduct"/>
52+
53+
<!-- Assert product in storefront product page -->
54+
<actionGroup ref="StorefrontOpenProductPageActionGroup" stepKey="openCreatedProductPage">
55+
<argument name="productUrl" value="$$createProduct.custom_attributes[url_key]$$"/>
56+
</actionGroup>
57+
58+
<!-- Assert Fotorama arrows aren't visible -->
59+
<dontSeeElement selector="{{StorefrontProductMediaSection.fotoramaPrevButton}}" stepKey="dontSeePrevButton"/>
60+
<dontSeeElement selector="{{StorefrontProductMediaSection.fotoramaNextButton}}" stepKey="dontSeeNextButton"/>
61+
</test>
62+
</tests>

0 commit comments

Comments
 (0)