Skip to content

Commit c58655e

Browse files
MAGETWO-44165: Magento\Catalog\Test\TestCase\Product\ProductTypeSwitchingOnCreationTest fails
- Fix comments
1 parent feb214a commit c58655e

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

app/code/Magento/ConfigurableProduct/Test/Mftf/Test/AdminCreateAndSwitchProductType.xml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@
8787
<title value="Admin should be able to switch a new product from simple to configurable"/>
8888
<description value="After selecting a simple product when adding Admin should be switch to configurable implicitly"/>
8989
<severity value="CRITICAL"/>
90+
<useCaseId value="MAGETWO-44165"/>
9091
<testCaseId value="MAGETWO-29398"/>
9192
<group value="catalog"/>
9293
<group value="mtf_migrated"/>
@@ -103,6 +104,8 @@
103104
<actionGroup ref="GoToSpecifiedCreateProductPage" stepKey="openProductFillForm">
104105
<argument name="productType" value="simple"/>
105106
</actionGroup>
107+
<!-- Create configurable product from simple product page-->
108+
<comment userInput="Create configurable product" stepKey="commentCreateProduct"/>
106109
<actionGroup ref="fillMainProductForm" stepKey="fillProductForm">
107110
<argument name="product" value="_defaultProduct"/>
108111
</actionGroup>
@@ -112,6 +115,8 @@
112115
</actionGroup>
113116
<actionGroup ref="saveConfiguredProduct" stepKey="saveProductForm"/>
114117
<see selector="{{AdminProductGridSection.productGridCell('2', 'Type')}}" userInput="Configurable Product" stepKey="seeProductTypeInGrid"/>
118+
<!-- Verify product on store front -->
119+
<comment userInput="Verify product on store front" stepKey="commentVerifyProductGrid"/>
115120
<actionGroup ref="VerifyOptionInProductStorefront" stepKey="verifyConfigurableOption" after="AssertProductInStorefrontProductPage">
116121
<argument name="attributeCode" value="$createConfigProductAttribute.default_frontend_label$"/>
117122
<argument name="optionName" value="$createConfigProductAttributeOption1.option[store_labels][1][label]$"/>
@@ -124,6 +129,7 @@
124129
<title value="Admin should be able to switch a new product from downloadable to configurable"/>
125130
<description value="After selecting a downloadable product when adding Admin should be switch to configurable implicitly"/>
126131
<severity value="CRITICAL"/>
132+
<useCaseId value="MAGETWO-44165"/>
127133
<testCaseId value="MAGETWO-29398"/>
128134
<group value="catalog"/>
129135
<group value="mtf_migrated"/>
@@ -145,18 +151,16 @@
145151
<deleteData stepKey="deleteAttribute" createDataKey="createConfigProductAttribute"/>
146152
<actionGroup ref="logout" stepKey="logout"/>
147153
</after>
148-
154+
<!-- Create configurable product from downloadable product page-->
155+
<comment userInput="Create configurable product" stepKey="commentCreateProduct"/>
149156
<actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin1"/>
150157
<!-- Open Dropdown and select downloadable product option -->
151158
<comment stepKey="beforeOpenProductFillForm" userInput="Selecting Product from the Add Product Dropdown"/>
152159
<actionGroup ref="GoToSpecifiedCreateProductPage" stepKey="openProductFillForm">
153160
<argument name="productType" value="downloadable"/>
154161
</actionGroup>
155-
156162
<scrollTo selector="{{AdminProductDownloadableSection.sectionHeader}}" stepKey="scrollToDownloadableInfo" />
157-
<wait stepKey="2" time="3"/>
158163
<uncheckOption selector="{{AdminProductDownloadableSection.isDownloadableProduct}}" stepKey="checkIsDownloadable"/>
159-
160164
<!-- Fill form for Downloadable Product Type -->
161165
<comment stepKey="beforeFillProductForm" userInput="Filling Product Form"/>
162166
<actionGroup ref="fillMainProductForm" stepKey="fillProductForm">
@@ -178,7 +182,7 @@
178182
<argument name="product" value="_defaultProduct"/>
179183
</actionGroup>
180184
<see selector="{{AdminProductGridSection.productGridCell('2', 'Type')}}" userInput="Configurable Product" stepKey="seeProductTypeInGrid"/>
181-
<actionGroup ref="AssertProductInStorefrontProductPage" stepKey="AssertProductInStorefrontProductPage">
185+
<actionGroup ref="AssertProductInStorefrontProductPage" stepKey="assertProductInStorefrontProductPage">
182186
<argument name="product" value="_defaultProduct"/>
183187
</actionGroup>
184188
<actionGroup ref="VerifyOptionInProductStorefront" stepKey="verifyConfigurableOption">

0 commit comments

Comments
 (0)