Skip to content

Commit e6b7c82

Browse files
committed
MAGETWO-72879: Update product from mini shopping cart doesn't reflect in the shopping cart
1 parent 5febcfe commit e6b7c82

File tree

1 file changed

+8
-17
lines changed

1 file changed

+8
-17
lines changed

app/code/Magento/Checkout/Test/Mftf/Test/StorefrontUpdateQtyInShoppingCartAfterUpdateInMinicartTest.xml

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111
<test name="StorefrontUpdateQtyInShoppingCartAfterUpdateInMinicartTest">
1212
<annotations>
1313
<features value="Checkout"/>
14-
<stories
15-
value="MAGETWO-72879: Update product from mini shopping cart doesn't reflect in the shopping cart"/>
14+
<stories value="Checkout via Guest Checkout"/>
1615
<title value="Check updating shopping cart while updating items from minicart"/>
1716
<description value="Check updating shopping cart while updating items from minicart"/>
1817
<severity value="AVERAGE"/>
@@ -36,7 +35,6 @@
3635

3736
<!--Open Product Page-->
3837
<amOnPage url="{{StorefrontProductPage.url($$createProduct.name$$)}}" stepKey="openProductPage"/>
39-
<waitForPageLoad stepKey="waitForProductPage"/>
4038
<!--Add product to cart-->
4139
<actionGroup ref="addToCartFromStorefrontProductPage" stepKey="addProductToCart">
4240
<argument name="productName" value="$$createProduct.name$$"/>
@@ -45,26 +43,19 @@
4543
<!--Go to Shopping cart-->
4644
<actionGroup ref="StorefrontOpenCartFromMinicartActionGroup" stepKey="openShoppingCart"/>
4745
<!--Check quantity in Shopping cart-->
48-
<grabValueFrom selector="{{CheckoutCartProductSection.productQuantityByName($$createProduct.name$$)}}"
49-
stepKey="grabQtyFromShoppingCart"/>
46+
<grabValueFrom selector="{{CheckoutCartProductSection.productQuantityByName($$createProduct.name$$)}}" stepKey="grabQtyFromShoppingCart"/>
5047
<assertEquals expected="1" actual="$grabQtyFromShoppingCart" stepKey="assertQtyInShoppingCart"/>
5148

5249
<!--Open minicart-->
5350
<click selector="{{StorefrontMinicartSection.showCart}}" stepKey="openMiniCart"/>
54-
<waitForElementVisible selector="{{StorefrontMinicartSection.itemQuantity($$createProduct.name$$)}}"
55-
stepKey="waitForItemQuantity"/>
56-
<pressKey selector="{{StorefrontMinicartSection.itemQuantity($$createProduct.name$$)}}"
57-
parameterArray="[\Facebook\WebDriver\WebDriverKeys::BACKSPACE]" stepKey="clearQtyField"/>
58-
<fillField selector="{{StorefrontMinicartSection.itemQuantity($$createProduct.name$$)}}" userInput="5"
59-
stepKey="fillQtyField"/>
60-
<waitForElementVisible selector="{{StorefrontMinicartSection.itemQuantityUpdate($$createProduct.name$$)}}"
61-
stepKey="waitForUpdateButton"/>
62-
<click selector="{{StorefrontMinicartSection.itemQuantityUpdate($$createProduct.name$$)}}"
63-
stepKey="clickUpdateButton"/>
51+
<waitForElementVisible selector="{{StorefrontMinicartSection.itemQuantity($$createProduct.name$$)}}" stepKey="waitForItemQuantity"/>
52+
<pressKey selector="{{StorefrontMinicartSection.itemQuantity($$createProduct.name$$)}}" parameterArray="[\Facebook\WebDriver\WebDriverKeys::BACKSPACE]" stepKey="clearQtyField"/>
53+
<fillField selector="{{StorefrontMinicartSection.itemQuantity($$createProduct.name$$)}}" userInput="5" stepKey="fillQtyField"/>
54+
<waitForElementVisible selector="{{StorefrontMinicartSection.itemQuantityUpdate($$createProduct.name$$)}}" stepKey="waitForUpdateButton"/>
55+
<click selector="{{StorefrontMinicartSection.itemQuantityUpdate($$createProduct.name$$)}}" stepKey="clickUpdateButton"/>
6456
<waitForAjaxLoad stepKey="waitForAjaxLoad"/>
6557
<!--Check quantity in shopping cart after updating-->
66-
<grabValueFrom selector="{{CheckoutCartProductSection.productQuantityByName($$createProduct.name$$)}}"
67-
stepKey="grabQtyFromShoppingCart1"/>
58+
<grabValueFrom selector="{{CheckoutCartProductSection.productQuantityByName($$createProduct.name$$)}}" stepKey="grabQtyFromShoppingCart1"/>
6859
<assertEquals expected="5" actual="$grabQtyFromShoppingCart1" stepKey="assertQtyInShoppingCart1"/>
6960
</test>
7061
</tests>

0 commit comments

Comments
 (0)