Skip to content

Commit 538cb1b

Browse files
committed
B2B-1654: Add MFTF test for MC-38432
- Addressing CR feedback
1 parent d54b95f commit 538cb1b

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

app/code/Magento/BundleImportExport/Test/Mftf/Test/AdminImportBundleProductTest.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
<argument name="productPrice" value="{{ImportProductSimple1_Bundle.price}}"/>
9696
<argument name="productQuantity" value="{{ImportProductSimple1_Bundle.quantity}}"/>
9797
<argument name="productWeight" value="{{ImportProductSimple1_Bundle.weight}}"/>
98-
<argument name="categoryNames" value="{{ImportCategory_Bundle.name}}"/>
98+
<argument name="categoryName" value="{{ImportCategory_Bundle.name}}"/>
9999
</actionGroup>
100100
<actionGroup ref="AssertProductImageAdminProductPageActionGroup" stepKey="assertSimpleProduct1ImageOnEditPage">
101101
<argument name="image" value="MagentoLogo"/>
@@ -122,7 +122,7 @@
122122
<argument name="productPrice" value="{{ImportProductSimple2_Bundle.price}}"/>
123123
<argument name="productQuantity" value="{{ImportProductSimple2_Bundle.quantity}}"/>
124124
<argument name="productWeight" value="{{ImportProductSimple2_Bundle.weight}}"/>
125-
<argument name="categoryNames" value="{{ImportCategory_Bundle.name}}"/>
125+
<argument name="categoryName" value="{{ImportCategory_Bundle.name}}"/>
126126
</actionGroup>
127127
<actionGroup ref="AssertProductImageAdminProductPageActionGroup" stepKey="assertSimpleProduct2ImageOnEditPage">
128128
<argument name="image" value="TestImage"/>
@@ -149,7 +149,7 @@
149149
<argument name="productPrice" value="{{ImportProductSimple3_Bundle.price}}"/>
150150
<argument name="productQuantity" value="{{ImportProductSimple3_Bundle.quantity}}"/>
151151
<argument name="productWeight" value="{{ImportProductSimple3_Bundle.weight}}"/>
152-
<argument name="categoryNames" value="{{ImportCategory_Bundle.name}}"/>
152+
<argument name="categoryName" value="{{ImportCategory_Bundle.name}}"/>
153153
</actionGroup>
154154
<actionGroup ref="AssertProductImageAdminProductPageActionGroup" stepKey="assertSimpleProduct3ImageOnEditPage">
155155
<argument name="image" value="TestImageAdobe"/>
@@ -164,7 +164,7 @@
164164
</actionGroup>
165165
<seeElement selector="{{AdminProductImagesSection.imageFileRoleByImage(TestImageAdobe.filename, 'thumbnail')}}" stepKey="seeThumbnailImageRoleSimple3"/>
166166

167-
<!-- Admin: Verify Grouped Product Common Data on Edit Product Page -->
167+
<!-- Admin: Verify Bundle Product Common Data on Edit Product Page -->
168168
<actionGroup ref="NavigateToCreatedProductEditPageActionGroup" stepKey="goToBundleProductEditPage">
169169
<argument name="product" value="ImportProduct_Bundle"/>
170170
</actionGroup>
@@ -194,7 +194,7 @@
194194
</actionGroup>
195195
<seeElement selector="{{AdminProductImagesSection.imageFileRoleByImage(TestImageAdobe.filename, 'thumbnail')}}" stepKey="seeThumbnailImageRoleBundle"/>
196196

197-
<!-- Admin: Verify Grouped Product Information on Edit Product Page -->
197+
<!-- Admin: Verify Bundle Product Information on Edit Product Page -->
198198
<seeOptionIsSelected userInput="{{ImportProduct_Bundle.bundleOptionShipmentType}}" selector="{{AdminProductFormBundleSection.shipmentType}}" stepKey="seeShipBundleItemsTogether"/>
199199
<seeNumberOfElements userInput="{{ImportProduct_Bundle.totalBundleOptions}}" selector="{{AdminProductFormBundleSection.allBundleOptions}}" stepKey="see2BundleOptionsAdmin"/>
200200
<actionGroup ref="AdminVerifyBundleProductOptionActionGroup" stepKey="verifyBundleProductOption1">

app/code/Magento/Catalog/Test/Mftf/ActionGroup/AdminAssertProductInfoOnEditPageActionGroup.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<argument name="productStockStatus" defaultValue="In Stock" type="string"/>
2323
<argument name="productWeight" defaultValue="{{_defaultProduct.weight}}" type="string"/>
2424
<argument name="productVisibility" defaultValue="Catalog, Search" type="string"/>
25-
<argument name="categoryNames" defaultValue="{{_defaultCategory.name}}" type="string"/>
25+
<argument name="categoryName" defaultValue="{{_defaultCategory.name}}" type="string"/>
2626
</arguments>
2727
<waitForElementVisible selector="{{AdminProductFormSection.productStatus}}" stepKey="waitForProductStatus"/>
2828
<seeElement selector="{{AdminProductFormSection.productStatusValue(productStatus)}}" stepKey="seeProductStatus"/>
@@ -34,6 +34,6 @@
3434
<seeInField selector="{{AdminProductFormSection.productStockStatus}}" userInput="{{productStockStatus}}" stepKey="seeProductStockStatus"/>
3535
<seeInField selector="{{AdminProductFormSection.productWeight}}" userInput="{{productWeight}}" stepKey="seeProductWeight"/>
3636
<seeOptionIsSelected selector="{{AdminProductFormSection.visibility}}" userInput="{{productVisibility}}" stepKey="seeProductVisibility"/>
37-
<seeElement selector="{{AdminProductFormSection.categories(categoryNames)}}" stepKey="seeProductCategories"/>
37+
<seeElement selector="{{AdminProductFormSection.categories(categoryName)}}" stepKey="seeProductCategories"/>
3838
</actionGroup>
3939
</actionGroups>

0 commit comments

Comments
 (0)