Skip to content

Commit fc19cbd

Browse files
MC-19438: Bundle Product Cart Pricing issue when adding tier price to bundle product and item is added twice to the cart
1 parent 972e2a3 commit fc19cbd

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

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

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,21 @@
1515
<description value="Customer should be able to add one more bundle product to the cart and get the right price"/>
1616
<severity value="CRITICAL"/>
1717
<testCaseId value="MC-19727"/>
18-
<group value="Bundle"/>
18+
<group value="bundle"/>
1919
</annotations>
2020
<before>
21-
<actionGroup ref="LoginAsAdmin" stepKey="login"/>
2221
<createData entity="SimpleProduct2" stepKey="simpleProduct1"/>
2322
<createData entity="SimpleProduct2" stepKey="simpleProduct2"/>
23+
<actionGroup ref="LoginAsAdmin" stepKey="login"/>
2424
</before>
2525
<after>
26+
<deleteData createDataKey="simpleProduct1" stepKey="deleteSimpleProduct1"/>
27+
<deleteData createDataKey="simpleProduct2" stepKey="deleteSimpleProduct2"/>
2628
<actionGroup stepKey="deleteBundle" ref="deleteProductUsingProductGrid">
2729
<argument name="product" value="BundleProduct"/>
2830
</actionGroup>
29-
<actionGroup ref="AdminClearFiltersActionGroup" stepKey="ClearFiltersAfter"/>
30-
<waitForPageLoad stepKey="waitForClearFilter"/>
31-
<deleteData createDataKey="simpleProduct1" stepKey="deleteSimpleProduct1"/>
32-
<deleteData createDataKey="simpleProduct2" stepKey="deleteSimpleProduct2"/>
31+
<actionGroup ref="AdminClearFiltersActionGroup" stepKey="clearFiltersAfter"/>
32+
<amOnPage url="{{AdminLogoutPage.url}}" stepKey="logout"/>
3333
</after>
3434
<amOnPage url="{{AdminProductCreatePage.url(BundleProduct.set, BundleProduct.type)}}" stepKey="goToBundleProductCreationPage"/>
3535
<waitForPageLoad stepKey="waitForBundleProductCreatePageToLoad"/>
@@ -50,27 +50,27 @@
5050
<argument name="optionTitle" value="Option2"/>
5151
<argument name="inputType" value="checkbox"/>
5252
</actionGroup>
53-
<actionGroup ref="saveProductForm" stepKey="saveProduct"/>
53+
<scrollToTopOfPage stepKey="scrollTopPageProduct"/>
5454
<actionGroup ref="ProductSetAdvancedPricing" stepKey="addTierPriceProduct1">
55-
<argument name="group" value="General"/>
55+
<argument name="group" value="ALL GROUPS"/>
5656
<argument name="quantity" value="1"/>
5757
<argument name="price" value="Discount"/>
5858
<argument name="amount" value="50"/>
5959
</actionGroup>
60-
<actionGroup ref="SignUpNewUserFromStorefrontActionGroup" stepKey="SignUpNewUser">
60+
<actionGroup ref="SignUpNewUserFromStorefrontActionGroup" stepKey="signUpNewUser">
6161
<argument name="Customer" value="CustomerEntityOne"/>
6262
</actionGroup>
63-
<amOnPage url="{{BundleProduct.sku}}.html" stepKey="goToStorefront"/>
63+
<amOnPage url="{{StorefrontProductPage.url(BundleProduct.urlKey)}}" stepKey="goToStorefront"/>
6464
<waitForPageLoad stepKey="waitForStorefront"/>
65-
<actionGroup ref="StorefrontSelectCustomizeAndAddToTheCartButtonActionGroup" stepKey="clickOnCustomizeAndAddtoCartButton"/>
65+
<actionGroup ref="StorefrontSelectCustomizeAndAddToTheCartButtonActionGroup" stepKey="clickOnCustomizeAndAddToCartButton"/>
6666
<actionGroup ref="StorefrontEnterProductQuantityAndAddToTheCartActionGroup" stepKey="enterProductQuantityAndAddToTheCart">
6767
<argument name="quantity" value="1"/>
6868
</actionGroup>
6969
<actionGroup ref="StorefrontEnterProductQuantityAndAddToTheCartActionGroup" stepKey="enterProductQuantityAndAddToTheCartAgain">
7070
<argument name="quantity" value="1"/>
7171
</actionGroup>
72-
<click stepKey="openMiniCart" selector="{{StorefrontMinicartSection.showCart}}"/>
73-
<waitForPageLoad stepKey="waitForMiniCart"/>
74-
<see stepKey="seeCartSubtotal" userInput="$246.00"/>
72+
<actionGroup ref="AssertSubTotalOnStorefrontMiniCartActionGroup" stepKey="assertSubTotalOnStorefrontMiniCart">
73+
<argument name="subTotal" value="$246.00"/>
74+
</actionGroup>
7575
</test>
7676
</tests>

0 commit comments

Comments
 (0)