Skip to content

Commit b32fc16

Browse files
glo74186Manjusha.S
authored and
Manjusha.S
committed
created entity deleted and did changes
1 parent 40e152d commit b32fc16

File tree

2 files changed

+15
-33
lines changed

2 files changed

+15
-33
lines changed

app/code/Magento/Bundle/Test/Mftf/Data/ProductData.xml

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -152,21 +152,4 @@
152152
<requiredEntity type="custom_attribute">CustomAttributeFixWeight</requiredEntity>
153153
<requiredEntity type="custom_attribute">CustomAttributeFixSku</requiredEntity>
154154
</entity>
155-
<entity name="ApiSimpleProductWithOptions" type="product">
156-
<data key="name" unique="suffix">ApiSimpleProductWithOptions</data>
157-
<data key="sku" unique="suffix">ApiSimpleProductWithOptions</data>
158-
<data key="attribute_set_id">4</data>
159-
<data key="price">123</data>
160-
<data key="visibility">4</data>
161-
<data key="status">1</data>
162-
<data key="statusText">Enabled</data>
163-
<data key="quantity">101</data>
164-
<data key="weight">1</data>
165-
<data key="urlKey" unique="suffix">ApiSimpleProductWithOptions</data>
166-
<data key="bundleIsDefault">true</data>
167-
<data key="bundleDefaultQuantity">50</data>
168-
<data key="bundleUserDefined">false</data>
169-
<requiredEntity type="product_extension_attribute">EavStockItem</requiredEntity>
170-
<requiredEntity type="custom_attribute_array">CustomAttributeCategoryIds</requiredEntity>
171-
</entity>
172155
</entities>

app/code/Magento/Bundle/Test/Mftf/Test/AdminCreateBundleProductTest.xml

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
<!-- creating category, simple products -->
2222
<actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>
2323
<createData entity="_defaultCategory" stepKey="createCategory"/>
24-
<createData entity="ApiSimpleProductWithOptions" stepKey="simpleProduct1"/>
25-
<createData entity="ApiSimpleProductWithOptions" stepKey="simpleProduct2"/>
24+
<createData entity="ImportProductSimple2_Bundle" stepKey="simpleProduct1"/>
25+
<createData entity="ImportProductSimple1_Bundle" stepKey="simpleProduct2"/>
2626
</before>
2727
<after>
2828
<!-- Delete bundle product -->
@@ -49,7 +49,7 @@
4949

5050
<!-- Add two bundle items -->
5151
<conditionalClick selector="{{AdminProductFormBundleSection.bundleItemsToggle}}" dependentSelector="{{AdminProductFormBundleSection.bundleItemsToggle}}" visible="false" stepKey="conditionallyOpenSectionBundleItems"/>
52-
<!-- Add two bundle options to the product -->
52+
<!-- Add bundle option to the product -->
5353
<actionGroup ref="AddBundleOptionWithTwoProductsActionGroup" stepKey="clickAddSelectedBundleProducts">
5454
<argument name="x" value="0"/>
5555
<argument name="n" value="1"/>
@@ -83,7 +83,7 @@
8383
<argument name="message" value="You saved the product."/>
8484
</actionGroup>
8585

86-
<!-- Verify we see created bundle product(from the above step) on the product grid page -->
86+
<!-- Verify we see created bundle product(from the above step) on the product grid page-->
8787
<actionGroup ref="AdminProductCatalogPageOpenActionGroup" stepKey="openProductCatalogPage1"/>
8888
<actionGroup ref="FilterProductGridBySkuAndNameActionGroup" stepKey="clickSearch">
8989
<argument name="product" value="BundleProduct"/>
@@ -93,25 +93,24 @@
9393
<!-- Admin: Verify Bundle Product Information on Edit Product Page -->
9494
<scrollTo selector="{{AdminProductFormBundleSection.allBundleOptions}}" stepKey="scrollToAllBundleOptions" />
9595
<actionGroup ref="AdminVerifyProductInBundleProductOptionActionGroup" stepKey="verifyBundleProductOption1Product1">
96-
<argument name="name" value="{{ApiSimpleProductWithOptions.name}}"/>
97-
<argument name="sku" value="{{ApiSimpleProductWithOptions.sku}}"/>
98-
<argument name="defaultQuantity" value="{{ApiSimpleProductWithOptions.bundleDefaultQuantity}}"/>
99-
<argument name="isDefault" value="{{ApiSimpleProductWithOptions.bundleIsDefault}}"/>
100-
<argument name="userDefined" value="{{ApiSimpleProductWithOptions.bundleUserDefined}}"/>
96+
<argument name="name" value="{{ImportProductSimple2_Bundle.name}}"/>
97+
<argument name="sku" value="{{ImportProductSimple2_Bundle.sku}}"/>
98+
<argument name="defaultQuantity" value="50"/>
99+
<argument name="isDefault" value="{{ImportProductSimple2_Bundle.bundleIsDefault}}"/>
100+
<argument name="userDefined" value="{{ImportProductSimple2_Bundle.bundleUserDefined}}"/>
101101
<argument name="optionIndex" value="1"/>
102102
<argument name="productIndex" value="1"/>
103103
</actionGroup>
104104
<actionGroup ref="AdminVerifyProductInBundleProductOptionActionGroup" stepKey="verifyBundleProductOption1Product2">
105-
<argument name="name" value="{{ApiSimpleProductWithOptions.name}}"/>
106-
<argument name="sku" value="{{ApiSimpleProductWithOptions.sku}}"/>
107-
<argument name="defaultQuantity" value="{{ApiSimpleProductWithOptions.bundleDefaultQuantity}}"/>
108-
<argument name="isDefault" value="false"/>
109-
<argument name="userDefined" value="false"/>
105+
<argument name="name" value="{{ImportProductSimple1_Bundle.name}}"/>
106+
<argument name="sku" value="{{ImportProductSimple1_Bundle.sku}}"/>
107+
<argument name="defaultQuantity" value="50"/>
108+
<argument name="isDefault" value="{{ImportProductSimple1_Bundle.bundleIsDefault}}"/>
109+
<argument name="userDefined" value="{{ImportProductSimple1_Bundle.bundleUserDefined}}"/>
110110
<argument name="optionIndex" value="1"/>
111111
<argument name="productIndex" value="2"/>
112112
</actionGroup>
113113

114-
115114
<!-- Storefront: Verify Bundle Product In Category -->
116115
<actionGroup ref="StorefrontOpenProductPageActionGroup" stepKey="GoToProductPage">
117116
<argument name="productUrl" value="{{BundleProduct.urlKey}}"/>
@@ -124,7 +123,7 @@
124123
</actionGroup>
125124
<see selector="{{StorefrontProductInfoMainSection.productName}}" userInput="{{BundleProduct.name}}" stepKey="seeProductName"/>
126125
<see selector="{{StorefrontProductInfoMainSection.productSku}}" userInput="{{BundleProduct.sku}}" stepKey="seeSku"/>
127-
<see userInput="$6,150.00" selector="{{StorefrontProductInfoMainSection.productPrice}}" stepKey="seePrice"/>
126+
<see userInput="From $500.00 To $1,000.00" selector="{{StorefrontProductInfoMainSection.productPrice}}" stepKey="seePrice"/>
128127

129128
<!-- Storefront: Verify Product option details -->
130129
<click selector="{{StorefrontBundledSection.addToCart}}" stepKey="clickCustomizeAndAddToCart"/>

0 commit comments

Comments
 (0)