Skip to content

Commit 63e7e0b

Browse files
committed
MC-18963: Bundle Product Cart Pricing issue when added a special price for associated products
1 parent 406af22 commit 63e7e0b

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

app/code/Magento/Bundle/Test/Mftf/Test/SpecialPriceBundleProductInCartTest.xml renamed to app/code/Magento/Bundle/Test/Mftf/Test/StorefrontSpecialPriceBundleProductInCartTest.xml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,43 +7,41 @@
77
-->
88
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
99
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
10-
<test name="SpecialPriceBundleProductInCartTest">
10+
<test name="StorefrontSpecialPriceBundleProductInCartTest">
1111
<annotations>
1212
<features value="Bundle"/>
1313
<stories value="Check that the cart total is correct when the bundle product with special price added to the cart"/>
1414
<title value="Customer should not be able to add a Bundle Product to the cart when added a special price for associated products"/>
1515
<description value="Customer should not be able to add a Bundle Product to the cart when added a special price for associated products"/>
1616
<severity value="MAJOR"/>
1717
<testCaseId value="MC-19134"/>
18-
<group value="Bundle"/>
18+
<group value="bundle"/>
1919
</annotations>
2020
<before>
21-
<actionGroup ref="LoginAsAdmin" stepKey="login"/>
2221
<createData entity="_defaultCategory" stepKey="category"/>
23-
<!-- Create simple product and add special price -->
22+
<!-- Create simple product and add special price -->
2423
<createData entity="SimpleProductWithSpecialPrice" stepKey="simpleProduct">
2524
<requiredEntity createDataKey="category"/>
2625
</createData>
26+
<actionGroup ref="LoginAsAdmin" stepKey="login"/>
2727
<amOnPage url="{{AdminProductEditPage.url($simpleProduct.id$)}}" stepKey="goToAdminProductPage"/>
28-
<waitForPageLoad stepKey="waitForAdminProductPage"/>
2928
<actionGroup ref="AddSpecialPriceToProductActionGroup" stepKey="addSpecialPrice">
3029
<argument name="price" value="{{SimpleProductWithSpecialPrice.special_price}}"/>
3130
</actionGroup>
3231
<actionGroup ref="saveProductForm" stepKey="saveSimpleProduct"/>
3332
</before>
3433
<after>
34+
<deleteData createDataKey="simpleProduct" stepKey="deleteSimpleProduct"/>
35+
<deleteData createDataKey="category" stepKey="deleteCategory"/>
3536
<!-- Delete the bundled product -->
3637
<actionGroup stepKey="deleteBundle" ref="deleteProductUsingProductGrid">
3738
<argument name="product" value="BundleProduct"/>
3839
</actionGroup>
3940
<actionGroup ref="AdminClearFiltersActionGroup" stepKey="ClearFiltersAfter"/>
40-
<amOnPage url="{{AdminLogoutPage.url}}" stepKey="logout"/>
41-
<deleteData createDataKey="simpleProduct" stepKey="deleteSimpleProduct"/>
42-
<deleteData createDataKey="category" stepKey="deleteCategory"/>
41+
<actionGroup ref="logout" stepKey="logout"/>
4342
</after>
4443
<!--Go to bundle product creation page-->
4544
<amOnPage url="{{AdminProductCreatePage.url(BundleProduct.set, BundleProduct.type)}}" stepKey="goToBundleProductCreationPage"/>
46-
<waitForPageLoad stepKey="waitForBundleProductCreatePageToLoad"/>
4745
<actionGroup ref="fillMainBundleProductForm" stepKey="fillMainFieldsForBundle"/>
4846
<!-- Add Option, a "Radio Buttons" type option -->
4947
<actionGroup ref="addBundleOptionWithOneProduct" stepKey="addBundleOptions">
@@ -58,7 +56,6 @@
5856
<actionGroup ref="saveProductForm" stepKey="saveBundleProduct"/>
5957
<!-- Go to storefront BundleProduct -->
6058
<amOnPage url="{{BundleProduct.sku}}.html" stepKey="goToStorefront"/>
61-
<waitForPageLoad stepKey="waitForStorefront"/>
6259
<actionGroup ref="StorefrontAddBundleProductFromProductToCartActionGroup" stepKey="addProductToCartFirstTime">
6360
<argument name="productName" value="{{BundleProduct.name}}"/>
6461
</actionGroup>

0 commit comments

Comments
 (0)