|
13 | 13 | <features value="Checkout"/>
|
14 | 14 | <title value="Check updating shopping cart while updating qty of items with custom options"/>
|
15 | 15 | <description value="Check updating shopping cart while updating qty of items with custom options"/>
|
| 16 | + <testCaseId value="MC-14732" /> |
16 | 17 | <group value="shoppingCart"/>
|
17 | 18 | <group value="mtf_migrated"/>
|
18 | 19 | </annotations>
|
|
26 | 27 | <updateData createDataKey="createProduct" entity="ProductWithTextFieldAndAreaOptions" stepKey="updateProductWithOption"/>
|
27 | 28 |
|
28 | 29 | <!-- Go to the product page, fill the custom options values and add the product to the shopping cart -->
|
29 |
| - <amOnPage url="{{StorefrontHomePage.url}}$createProduct.custom_attributes[url_key]$.html" stepKey="amOnProductPage"/> |
| 30 | + <amOnPage url="{{StorefrontProductPage.url($$createProduct.custom_attributes[url_key]$$)}}" stepKey="amOnProductPage"/> |
30 | 31 | <waitForPageLoad stepKey="waitForCatalogPageLoad"/>
|
31 | 32 | <fillField userInput="OptionField" selector="{{StorefrontProductInfoMainSection.productOptionFieldInput(ProductOptionField.title)}}" stepKey="fillProductOptionInputField"/>
|
32 | 33 | <fillField userInput="OptionArea" selector="{{StorefrontProductInfoMainSection.productOptionAreaInput(ProductOptionArea.title)}}" stepKey="fillProductOptionInputArea"/>
|
|
41 | 42 |
|
42 | 43 | <!-- Go to the shopping cart -->
|
43 | 44 | <amOnPage url="{{CheckoutCartPage.url}}" stepKey="amOnPageShoppingCart"/>
|
44 |
| - <waitForPageLoad stepKey="waitForCheckoutPageLoad1"/> |
| 45 | + <waitForPageLoad stepKey="waitForCheckoutPageLoad"/> |
45 | 46 |
|
46 | 47 | <!-- Change the product QTY -->
|
47 |
| - <fillField selector="{{CheckoutCartProductSection.ProductQuantityByName($$createProduct.name$$)}}" userInput="11" stepKey="changeCartQty"/> |
48 |
| - <click selector="{{CheckoutCartProductSection.updateShoppingCartButton}}" stepKey="openShoppingCart"/> |
49 |
| - <waitForPageLoad stepKey="waitForCheckoutPageLoad2"/> |
| 48 | + <fillField selector="{{CheckoutCartProductSection.ProductQuantityByName($$createProduct.name$$)}}" userInput="{{quoteQty11Subtotal1320.qty}}" stepKey="changeCartQty"/> |
| 49 | + <click selector="{{CheckoutCartProductSection.updateShoppingCartButton}}" stepKey="updateShoppingCart"/> |
| 50 | + <waitForPageLoad stepKey="waitShoppingCartUpdated"/> |
50 | 51 |
|
51 | 52 | <!-- The price and QTY values should be updated for the product -->
|
52 | 53 | <grabValueFrom selector="{{CheckoutCartProductSection.ProductQuantityByName($$createProduct.name$$)}}" stepKey="grabProductQtyInCart"/>
|
53 |
| - <see userInput="$1,320.00" selector="{{CheckoutCartProductSection.productSubtotalByName($$createProduct.name$$)}}" stepKey="assertProductPrice"/> |
54 |
| - <assertEquals expected="11" actual="$grabProductQtyInCart" stepKey="assertProductQtyInCart"/> |
55 |
| - <see userInput="$1,320.00" selector="{{CheckoutCartSummarySection.subtotal}}" stepKey="assertSubtotal"/> |
| 54 | + <see userInput="{{quoteQty11Subtotal1320.currency}}{{quoteQty11Subtotal1320.subtotal}}" selector="{{CheckoutCartProductSection.productSubtotalByName($$createProduct.name$$)}}" stepKey="assertProductPrice"/> |
| 55 | + <assertEquals stepKey="assertProductQtyInCart"> |
| 56 | + <expectedResult type="string">{{quoteQty11Subtotal1320.qty}}</expectedResult> |
| 57 | + <actualResult type="variable">grabProductQtyInCart</actualResult> |
| 58 | + </assertEquals> |
| 59 | + <see userInput="{{quoteQty11Subtotal1320.currency}}{{quoteQty11Subtotal1320.subtotal}}" selector="{{CheckoutCartSummarySection.subtotal}}" stepKey="assertSubtotal"/> |
56 | 60 |
|
57 | 61 | <!-- Minicart product price and subtotal should be updated -->
|
58 | 62 | <actionGroup ref="clickViewAndEditCartFromMiniCart" stepKey="openMinicart"/>
|
59 | 63 | <grabValueFrom selector="{{StorefrontMinicartSection.itemQuantity($$createProduct.name$$)}}" stepKey="grabProductQtyInMinicart"/>
|
60 |
| - <assertEquals expected="11" actual="$grabProductQtyInMinicart" stepKey="assertProductQtyInMinicart"/> |
61 |
| - <see userInput="1,320.00" selector="{{StorefrontMinicartSection.subtotal}}" stepKey="assertMinicartSubtotal"/> |
| 64 | + <assertEquals stepKey="assertProductQtyInMinicart"> |
| 65 | + <expectedResult type="string">{{quoteQty11Subtotal1320.qty}}</expectedResult> |
| 66 | + <actualResult type="variable">grabProductQtyInMinicart</actualResult> |
| 67 | + </assertEquals> |
| 68 | + <see userInput="{{quoteQty11Subtotal1320.currency}}{{quoteQty11Subtotal1320.subtotal}}" selector="{{StorefrontMinicartSection.subtotal}}" stepKey="assertMinicartSubtotal"/> |
62 | 69 | </test>
|
63 | 70 | </tests>
|
0 commit comments