-
Notifications
You must be signed in to change notification settings - Fork 9.3k
/
UpdateProductFromMiniShoppingCartEntityTest.xml
47 lines (41 loc) · 1.79 KB
/
UpdateProductFromMiniShoppingCartEntityTest.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?xml version="1.0" encoding="UTF-8"?>
<!--
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
<test name="UpdateProductFromMiniShoppingCartEntityTest">
<annotations>
<stories value="Shopping Cart"/>
<title value="Check updating product from mini shopping cart"/>
<description value="Update Product Qty on Mini Shopping Cart"/>
<severity value="MAJOR"/>
<testCaseId value="MC-15068"/>
<group value="shoppingCart"/>
<group value="mtf_migrated"/>
</annotations>
<before>
<!--Create product according to dataset.-->
<createData entity="simpleProductWithoutCategory" stepKey="createProduct"/>
<!--Add product to cart-->
<actionGroup ref="AddSimpleProductToCart" stepKey="addToCartFromStorefrontProductPage">
<argument name="product" value="$$createProduct$$"/>
</actionGroup>
</before>
<after>
<!--Delete created data-->
<deleteData createDataKey="createProduct" stepKey="deleteProduct" />
</after>
<actionGroup ref="StorefrontUpdateProductQtyMiniShoppingCartActionGroup" stepKey="updateProductQty">
<argument name="product" value="$$createProduct$$" />
<argument name="quote" value="simpleOrderQty2" />
</actionGroup>
<!-- Perform all assertions -->
<actionGroup ref="AssertMiniShoppingCartSubTotalActionGroup" stepKey="checkSummary">
<argument name="dataQuote" value="simpleOrderQty2"/>
</actionGroup>
</test>
</tests>