File tree Expand file tree Collapse file tree 4 files changed +42
-8
lines changed Expand file tree Collapse file tree 4 files changed +42
-8
lines changed Original file line number Diff line number Diff line change 158
158
<see userInput =" ${{total}}" selector =" {{CheckoutPaymentSection.orderSummaryTotal}}" stepKey =" assertTotal" />
159
159
</actionGroup >
160
160
161
+ <actionGroup name =" CheckTotalsSortOrderInSummarySection" >
162
+ <arguments >
163
+ <argument name =" elementName" type =" string" />
164
+ <argument name =" positionNumber" type =" integer" />
165
+ </arguments >
166
+ <see userInput =" {{elementName}}" selector =" {{CheckoutCartSummarySection.elementPosition(positionNumber)}}" stepKey =" assertElementPosition" />
167
+ </actionGroup >
168
+
161
169
<!-- Check ship to information in checkout -->
162
170
<actionGroup name =" CheckShipToInformationInCheckoutActionGroup" >
163
171
<arguments >
Original file line number Diff line number Diff line change 9
9
<sections xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
10
10
xsi : noNamespaceSchemaLocation =" urn:magento:mftf:Page/etc/SectionObject.xsd" >
11
11
<section name =" CheckoutCartSummarySection" >
12
+ <element name =" elementPosition" type =" text" selector =" .data.table.totals > tbody tr:nth-of-type({{value}}) > th" parameterized =" true" />
12
13
<element name =" subtotal" type =" text" selector =" //*[@id='cart-totals']//tr[@class='totals sub']//td//span[@class='price']" />
13
14
<element name =" shippingMethodForm" type =" text" selector =" #co-shipping-method-form" />
14
15
<element name =" shippingMethod" type =" text" selector =" //*[@id='cart-totals']//tr[@class='totals shipping excl']//th//span[@class='value']" />
Original file line number Diff line number Diff line change 39
39
<requiredEntity type =" SalesRuleLabel" >SalesRuleLabelStore1</requiredEntity >
40
40
</entity >
41
41
42
+ <entity name =" ApiCartRule" type =" SalesRule" >
43
+ <data key =" name" unique =" suffix" >salesRule</data >
44
+ <data key =" description" >Sales Rule Descritpion</data >
45
+ <array key =" website_ids" >
46
+ <item >1</item >
47
+ </array >
48
+ <array key =" customer_group_ids" >
49
+ <item >0</item >
50
+ <item >1</item >
51
+ <item >3</item >
52
+ </array >
53
+ <data key =" uses_per_customer" >0</data >
54
+ <data key =" is_active" >true</data >
55
+ <data key =" stop_rules_processing" >true</data >
56
+ <data key =" is_advanced" >true</data >
57
+ <data key =" sort_order" >0</data >
58
+ <data key =" simple_action" >by_percent</data >
59
+ <data key =" discount_amount" >50</data >
60
+ <data key =" discount_qty" >0</data >
61
+ <data key =" discount_step" >0</data >
62
+ <data key =" apply_to_shipping" >false</data >
63
+ <data key =" times_used" >0</data >
64
+ <data key =" is_rss" >true</data >
65
+ <data key =" coupon_type" >NO_COUPON</data >
66
+ <data key =" use_auto_generation" >false</data >
67
+ <data key =" uses_per_coupon" >0</data >
68
+ <data key =" simple_free_shipping" >0</data >
69
+ </entity >
70
+
42
71
<entity name =" SimpleSalesRule" type =" SalesRule" >
43
72
<data key =" name" unique =" suffix" >SimpleSalesRule</data >
44
73
<data key =" is_active" >true</data >
Original file line number Diff line number Diff line change 13
13
<item name =" components" xsi : type =" array" >
14
14
<item name =" block-totals" xsi : type =" array" >
15
15
<item name =" children" xsi : type =" array" >
16
- <item name =" before_grandtotal" xsi : type =" array" >
17
- <item name =" children" xsi : type =" array" >
18
- <item name =" discount" xsi : type =" array" >
19
- <item name =" component" xsi : type =" string" >Magento_SalesRule/js/view/cart/totals/discount</item >
20
- <item name =" config" xsi : type =" array" >
21
- <item name =" title" xsi : type =" string" translate =" true" >Discount</item >
22
- </item >
23
- </item >
16
+ <item name =" discount" xsi : type =" array" >
17
+ <item name =" component" xsi : type =" string" >Magento_SalesRule/js/view/cart/totals/discount</item >
18
+ <item name =" config" xsi : type =" array" >
19
+ <item name =" title" xsi : type =" string" translate =" true" >Discount</item >
24
20
</item >
25
21
</item >
26
22
</item >
You can’t perform that action at this time.
0 commit comments