|
11 | 11 | <test name="StorefrontUpdateQtyInShoppingCartAfterUpdateInMinicartTest">
|
12 | 12 | <annotations>
|
13 | 13 | <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"/> |
16 | 15 | <title value="Check updating shopping cart while updating items from minicart"/>
|
17 | 16 | <description value="Check updating shopping cart while updating items from minicart"/>
|
18 | 17 | <severity value="AVERAGE"/>
|
|
36 | 35 |
|
37 | 36 | <!--Open Product Page-->
|
38 | 37 | <amOnPage url="{{StorefrontProductPage.url($$createProduct.name$$)}}" stepKey="openProductPage"/>
|
39 |
| - <waitForPageLoad stepKey="waitForProductPage"/> |
40 | 38 | <!--Add product to cart-->
|
41 | 39 | <actionGroup ref="addToCartFromStorefrontProductPage" stepKey="addProductToCart">
|
42 | 40 | <argument name="productName" value="$$createProduct.name$$"/>
|
|
45 | 43 | <!--Go to Shopping cart-->
|
46 | 44 | <actionGroup ref="StorefrontOpenCartFromMinicartActionGroup" stepKey="openShoppingCart"/>
|
47 | 45 | <!--Check quantity in Shopping cart-->
|
48 |
| - <grabValueFrom selector="{{CheckoutCartProductSection.productQuantityByName($$createProduct.name$$)}}" |
49 |
| - stepKey="grabQtyFromShoppingCart"/> |
| 46 | + <grabValueFrom selector="{{CheckoutCartProductSection.productQuantityByName($$createProduct.name$$)}}" stepKey="grabQtyFromShoppingCart"/> |
50 | 47 | <assertEquals expected="1" actual="$grabQtyFromShoppingCart" stepKey="assertQtyInShoppingCart"/>
|
51 | 48 |
|
52 | 49 | <!--Open minicart-->
|
53 | 50 | <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"/> |
64 | 56 | <waitForAjaxLoad stepKey="waitForAjaxLoad"/>
|
65 | 57 | <!--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"/> |
68 | 59 | <assertEquals expected="5" actual="$grabQtyFromShoppingCart1" stepKey="assertQtyInShoppingCart1"/>
|
69 | 60 | </test>
|
70 | 61 | </tests>
|
0 commit comments