Skip to content
This repository was archived by the owner on Dec 19, 2019. It is now read-only.

Commit 71ce417

Browse files
authored
Merge pull request #109 from magento-pangolin/MC-4756
MC-4756
2 parents 667a8dd + 1c50eba commit 71ce417

27 files changed

+1023
-5
lines changed

app/code/Magento/Catalog/Test/Mftf/Data/ProductData.xml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1095,4 +1095,44 @@
10951095
<requiredEntity type="product_extension_attribute">EavStockItem</requiredEntity>
10961096
<requiredEntity type="custom_attribute_array">CustomAttributeCategoryIds</requiredEntity>
10971097
</entity>
1098+
<entity name="SimpleProduct_100" type="product">
1099+
<data key="sku" unique="suffix">testSku</data>
1100+
<data key="type_id">simple</data>
1101+
<data key="attribute_set_id">4</data>
1102+
<data key="visibility">4</data>
1103+
<data key="name" unique="suffix">testProductName</data>
1104+
<data key="price">100.00</data>
1105+
<data key="urlKey" unique="suffix">testurlkey</data>
1106+
<data key="status">1</data>
1107+
<data key="quantity">777</data>
1108+
<data key="weight">1</data>
1109+
<requiredEntity type="product_extension_attribute">EavStock777</requiredEntity>
1110+
<requiredEntity type="custom_attribute_array">CustomAttributeCategoryIds</requiredEntity>
1111+
</entity>
1112+
<entity name="ApiSimpleOneQty10" type="product2">
1113+
<data key="sku" unique="suffix">api-simple-product</data>
1114+
<data key="type_id">simple</data>
1115+
<data key="attribute_set_id">4</data>
1116+
<data key="visibility">4</data>
1117+
<data key="name" unique="suffix">Api Simple Product</data>
1118+
<data key="price">40.00</data>
1119+
<data key="urlKey" unique="suffix">api-simple-product</data>
1120+
<data key="status">1</data>
1121+
<data key="quantity">10</data>
1122+
<requiredEntity type="product_extension_attribute">EavStock10</requiredEntity>
1123+
<requiredEntity type="custom_attribute">CustomAttributeProductAttribute</requiredEntity>
1124+
</entity>
1125+
<entity name="ApiSimpleTwoQty10" type="product2">
1126+
<data key="sku" unique="suffix">api-simple-product-two</data>
1127+
<data key="type_id">simple</data>
1128+
<data key="attribute_set_id">4</data>
1129+
<data key="visibility">4</data>
1130+
<data key="name" unique="suffix">Api Simple Product Two</data>
1131+
<data key="price">40.00</data>
1132+
<data key="urlKey" unique="suffix">api-simple-product-two</data>
1133+
<data key="status">1</data>
1134+
<data key="quantity">10</data>
1135+
<requiredEntity type="product_extension_attribute">EavStock10</requiredEntity>
1136+
<requiredEntity type="custom_attribute">CustomAttributeProductAttribute</requiredEntity>
1137+
</entity>
10981138
</entities>

app/code/Magento/Catalog/Test/Mftf/Data/ProductExtensionAttributeData.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,7 @@
2020
<entity name="EavStock1" type="product_extension_attribute">
2121
<requiredEntity type="stock_item">Qty_1</requiredEntity>
2222
</entity>
23+
<entity name="EavStock777" type="product_extension_attribute">
24+
<requiredEntity type="stock_item">Qty_777</requiredEntity>
25+
</entity>
2326
</entities>

app/code/Magento/Catalog/Test/Mftf/Data/StockItemData.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,8 @@
3232
<data key="qty">1</data>
3333
<data key="is_in_stock">true</data>
3434
</entity>
35+
<entity name="Qty_777" type="stock_item">
36+
<data key="qty">777</data>
37+
<data key="is_in_stock">true</data>
38+
</entity>
3539
</entities>

app/code/Magento/Customer/Test/Mftf/Page/StorefrontCustomerDashboardPage.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Page/etc/PageObject.xsd">
1111
<page name="StorefrontCustomerDashboardPage" url="/customer/account/" area="storefront" module="Magento_Customer">
1212
<section name="StorefrontCustomerDashboardAccountInformationSection" />
13+
<section name="StorefrontCustomerResentOrdersSection"/>
1314
<section name="StorefrontCustomerSidebarSection"/>
1415
<section name="StorefrontMinicartSection"/>
1516
<section name="StorefrontCustomerFooterSection"/>

app/code/Magento/Customer/Test/Mftf/Section/StorefrontCustomerOrderSection.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,7 @@
1313
<element name="productCustomOptions" type="text" selector="//strong[contains(@class, 'product-item-name') and normalize-space(.)='{{var1}}']/following-sibling::*[contains(@class, 'item-options')]/dt[normalize-space(.)='{{var2}}']/following-sibling::dd[normalize-space(.)='{{var3}}']" parameterized="true"/>
1414
<element name="productCustomOptionsFile" type="text" selector="//strong[contains(@class, 'product-item-name') and normalize-space(.)='{{var1}}']/following-sibling::*[contains(@class, 'item-options')]/dt[normalize-space(.)='{{var2}}']/following-sibling::dd[contains(.,'{{var3}}')]" parameterized="true"/>
1515
<element name="productCustomOptionsLink" type="text" selector="//strong[contains(@class, 'product-item-name') and normalize-space(.)='{{var1}}']/following-sibling::*[contains(@class, 'item-options')]/dt[normalize-space(.)='{{var2}}']/following-sibling::dd//a[text() = '{{var3}}']" parameterized="true"/>
16+
<element name="tabRefund" type="button" selector="//a[text()='Refunds']"/>
17+
<element name="grandTotalRefund" type="text" selector="td[data-th='Grand Total'] > strong > span.price"/>
1618
</section>
1719
</sections>
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
/**
4+
* Copyright © Magento, Inc. All rights reserved.
5+
* See COPYING.txt for license details.
6+
*/
7+
-->
8+
9+
<sections xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Page/etc/SectionObject.xsd">
11+
<section name="StorefrontCustomerResentOrdersSection">
12+
<element name="blockResentOrders" type="text" selector="//div[@class='block-title order']"/>
13+
<element name="viewOrder" type="button" selector="//td[text()='{{orderId}}']/following-sibling::td[@data-th='Actions']/a[@class='action view']" parameterized="true"/>
14+
</section>
15+
</sections>
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
/**
4+
* Copyright © Magento, Inc. All rights reserved.
5+
* See COPYING.txt for license details.
6+
*/
7+
-->
8+
9+
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
11+
<actionGroup name="AdminAssertProductQtyInGridActionGroup">
12+
<arguments>
13+
<argument name="productSku" type="string"/>
14+
<argument name="expectedQty" type="string"/>
15+
</arguments>
16+
<!-- Assert product Qty decreased after CreditMemo -->
17+
<amOnPage url="{{AdminCatalogProductPage.url}}" stepKey="onProductPage"/>
18+
<waitForPageLoad stepKey="waitForProductPage"/>
19+
<conditionalClick selector="{{AdminProductGridFilterSection.clearFilters}}" dependentSelector="{{AdminProductGridFilterSection.clearFilters}}" visible="true" stepKey="clearExistingOrderFilters"/>
20+
<click selector="{{AdminProductGridFilterSection.filters}}" stepKey="openOrderGridFilters"/>
21+
<waitForPageLoad stepKey="waitForFilter"/>
22+
<fillField userInput="{{productSku}}" selector="{{AdminProductGridFilterSection.skuFilter}}" stepKey="fillOrderIdFilter"/>
23+
<click selector="{{AdminProductGridFilterSection.applyFilters}}" stepKey="clickOrderApplyFilters"/>
24+
<see userInput="{{expectedQty}}" stepKey="assertQtyDecreased"/>
25+
</actionGroup>
26+
</actionGroups>
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
/**
4+
* Copyright © Magento, Inc. All rights reserved.
5+
* See COPYING.txt for license details.
6+
*/
7+
-->
8+
9+
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
11+
<actionGroup name="AdminAssertRefundInRefundsGridActionGroup">
12+
<arguments>
13+
<argument name="orderId" type="string"/>
14+
<argument name="memoId" type="string"/>
15+
<argument name="refundStatus" type="string"/>
16+
<argument name="refundedTotal" type="string"/>
17+
</arguments>
18+
<!--Assert refund in refunds grid-->
19+
<amOnPage url="{{AdminCreditMemosGridPage.url}}" stepKey="onCreditMemosGrid"/>
20+
<waitForPageLoad stepKey="waitForLoadingPage"/>
21+
<conditionalClick selector="{{AdminCreditMemosGridSection.clearFilters}}" dependentSelector="{{AdminCreditMemosGridSection.clearFilters}}" visible="true" stepKey="clearFilter"/>
22+
<waitForLoadingMaskToDisappear stepKey="waitForFilterLoad"/>
23+
<click selector="{{AdminCreditMemosGridSection.buttonFilters}}" stepKey="openFilterSearch"/>
24+
<waitForLoadingMaskToDisappear stepKey="waitForFilterFields"/>
25+
<fillField userInput="{{memoId}}" selector="{{AdminCreditMemosGridSection.fieldCreditMemo}}" stepKey="fillSearchByCreditMemoId"/>
26+
<fillField userInput="{{orderId}}" selector="{{AdminCreditMemosGridSection.fieldOrder}}" stepKey="fillSearchByOrderId"/>
27+
<fillField userInput="{{refundedTotal}}" selector="{{AdminCreditMemosGridSection.fieldRefundFrom}}" stepKey="fillRefundedFrom"/>
28+
<fillField userInput="{{refundedTotal}}" selector="{{AdminCreditMemosGridSection.fieldRefundTo}}" stepKey="fillRefundedTo"/>
29+
<click selector="{{AdminCreditMemosGridSection.applyFilter}}" stepKey="clickSearchButton"/>
30+
<waitForLoadingMaskToDisappear stepKey="waitForSearchResult"/>
31+
<see userInput="{{memoId}}" selector="{{AdminCreditMemosGridSection.rowCreditMemos}}" stepKey="seeMemoID"/>
32+
<see userInput="{{orderId}}" selector="{{AdminCreditMemosGridSection.rowCreditMemos}}" stepKey="seeOrderID"/>
33+
<see userInput="{{refundStatus}}" selector="{{AdminCreditMemosGridSection.rowCreditMemos}}" stepKey="seeStatus"/>
34+
<see userInput="{{refundedTotal}}" selector="{{AdminCreditMemosGridSection.rowCreditMemos}}" stepKey="refundedPrice"/>
35+
</actionGroup>
36+
</actionGroups>
37+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
/**
4+
* Copyright © Magento, Inc. All rights reserved.
5+
* See COPYING.txt for license details.
6+
*/
7+
-->
8+
9+
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
11+
<actionGroup name="AdminAssertRefundOrderStatusCommentsHistoryActionGroup">
12+
<arguments>
13+
<argument name="orderStatus" type="string"/>
14+
<argument name="refundMessage" type="string"/>
15+
</arguments>
16+
<!-- Assert refund order status in Comments History -->
17+
<click selector="{{AdminOrderDetailsOrderViewSection.commentsHistory}}" stepKey="clickOnTabCommentsHistory"/>
18+
<waitForPageLoad stepKey="waitForComments"/>
19+
<see userInput="{{orderStatus}}" selector="{{ViewOrderSection.orderStatus}}" stepKey="assertRefundOrderStatusInCommentsHistory"/>
20+
<see userInput="{{refundMessage}}" selector="{{ViewOrderSection.capturedAmountTextUnsubmitted}}" stepKey="assertOrderStatus"/>
21+
</actionGroup>
22+
</actionGroups>
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
/**
4+
* Copyright © Magento, Inc. All rights reserved.
5+
* See COPYING.txt for license details.
6+
*/
7+
-->
8+
9+
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
11+
<actionGroup name="AdminOpenAndFillCreditMemoRefundActionGroup">
12+
<arguments>
13+
<argument name="itemQtyToRefund" type="string" defaultValue="1"/>
14+
<argument name="shippingRefund" type="string" />
15+
<argument name="adjustmentRefund" type="string" defaultValue="0"/>
16+
<argument name="adjustmentFee" type="string" defaultValue="0"/>
17+
<argument name="rowNumber" type="string" defaultValue="1"/>
18+
</arguments>
19+
<!-- Click 'Credit Memo' button -->
20+
<click selector="{{AdminOrderDetailsMainActionsSection.creditMemo}}" stepKey="clickCreateCreditMemo"/>
21+
<seeInCurrentUrl url="{{AdminCreditMemoNewPage.url}}" stepKey="seeNewCreditMemoPage"/>
22+
<see selector="{{AdminHeaderSection.pageTitle}}" userInput="New Memo" stepKey="seeNewMemoInPageTitle"/>
23+
<!-- Fill data from dataset: refund -->
24+
<scrollTo selector="{{AdminCreditMemoItemsSection.header}}" stepKey="scrollToItemsToRefund"/>
25+
<fillField selector="{{AdminCreditMemoItemsSection.itemQtyToRefund(rowNumber)}}" userInput="{{itemQtyToRefund}}" stepKey="fillQtyToRefund"/>
26+
<waitForLoadingMaskToDisappear stepKey="waitForActivateButton"/>
27+
<click selector="{{AdminCreditMemoItemsSection.updateQty}}" stepKey="clickUpdateButton"/>
28+
<waitForLoadingMaskToDisappear stepKey="waitForUpdate"/>
29+
<fillField userInput="{{shippingRefund}}" selector="{{AdminCreditMemoTotalSection.refundShipping}}" stepKey="fillShipping"/>
30+
<fillField userInput="{{adjustmentRefund}}" selector="{{AdminCreditMemoTotalSection.adjustmentRefund}}" stepKey="fillAdjustmentRefund"/>
31+
<fillField userInput="{{adjustmentFee}}" selector="{{AdminCreditMemoTotalSection.adjustmentFee}}" stepKey="fillAdjustmentFee"/>
32+
<checkOption selector="{{AdminCreditMemoTotalSection.emailCopy}}" stepKey="checkSendEmailCopy"/>
33+
</actionGroup>
34+
<!-- Open and fill CreditMemo refund with back to stock -->
35+
<actionGroup name="AdminOpenAndFillCreditMemoRefundAndBackToStockActionGroup" extends="AdminOpenAndFillCreditMemoRefundActionGroup">
36+
<checkOption selector="{{AdminCreditMemoItemsSection.itemReturnToStock(rowNumber)}}" stepKey="backToStock" after="scrollToItemsToRefund"/>
37+
</actionGroup>
38+
</actionGroups>

app/code/Magento/Sales/Test/Mftf/ActionGroup/AdminOrderActionGroup.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,14 +98,15 @@
9898
<!--Add a simple product to order-->
9999
<actionGroup name="addSimpleProductToOrder">
100100
<arguments>
101-
<argument name="product" defaultValue="_defaultProduct"/>
101+
<argument name="product" defaultValue="_defaultProduct" type="entity"/>
102+
<argument name="productQty" defaultValue="1" type="string"/>
102103
</arguments>
103104
<click selector="{{AdminOrderFormItemsSection.addProducts}}" stepKey="clickAddProducts"/>
104105
<fillField selector="{{AdminOrderFormItemsSection.skuFilter}}" userInput="{{product.sku}}" stepKey="fillSkuFilter"/>
105106
<click selector="{{AdminOrderFormItemsSection.search}}" stepKey="clickSearch"/>
106107
<scrollTo selector="{{AdminOrderFormItemsSection.rowCheck('1')}}" x="0" y="-100" stepKey="scrollToCheckColumn"/>
107108
<checkOption selector="{{AdminOrderFormItemsSection.rowCheck('1')}}" stepKey="selectProduct"/>
108-
<fillField selector="{{AdminOrderFormItemsSection.rowQty('1')}}" userInput="1" stepKey="fillProductQty"/>
109+
<fillField selector="{{AdminOrderFormItemsSection.rowQty('1')}}" userInput="{{productQty}}" stepKey="fillProductQty"/>
109110
<scrollTo selector="{{AdminOrderFormItemsSection.addSelected}}" x="0" y="-100" stepKey="scrollToAddSelectedButton"/>
110111
<click selector="{{AdminOrderFormItemsSection.addSelected}}" stepKey="clickAddSelectedProducts"/>
111112
<wait time="5" stepKey="waitForOptionsToLoad"/>
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
/**
4+
* Copyright © Magento, Inc. All rights reserved.
5+
* See COPYING.txt for license details.
6+
*/
7+
-->
8+
9+
<entities xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:DataGenerator/etc/dataProfileSchema.xsd">
11+
<entity name="enabledCheckMoneyOrder" type="config">
12+
<data key="label">payment/checkmo/active</data>
13+
<data key="value">1</data>
14+
</entity>
15+
<entity name="enabledBankTransferPaymentOrder" type="config">
16+
<data key="label">payment/banktransfer/active</data>
17+
<data key="value">1</data>
18+
</entity>
19+
<entity name="disabledBankTransferPaymentOrder" type="config">
20+
<data key="label">payment/banktransfer/active</data>
21+
<data key="value">0</data>
22+
</entity>
23+
<entity name="enabledCashOnDeliveryPayment" type="config">
24+
<data key="label">payment/cashondelivery/active</data>
25+
<data key="value">1</data>
26+
</entity>
27+
<entity name="disabledCashOnDeliveryPayment" type="config">
28+
<data key="label">payment/cashondelivery/active</data>
29+
<data key="value">0</data>
30+
</entity>
31+
<entity name="enabledPurchaseOrderPayment" type="config">
32+
<data key="label">payment/purchaseorder/active</data>
33+
<data key="value">1</data>
34+
</entity>
35+
<entity name="disabledPurchaseOrderPayment" type="config">
36+
<data key="label">payment/purchaseorder/active</data>
37+
<data key="value">0</data>
38+
</entity>
39+
</entities>
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
/**
4+
* Copyright © Magento, Inc. All rights reserved.
5+
* See COPYING.txt for license details.
6+
*/
7+
-->
8+
9+
<pages xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Page/etc/PageObject.xsd">
11+
<page name="AdminCreditMemoViewPage" url="sales/order_creditmemo/view/creditmemo_id/{{memoId}}/" area="admin" module="Magento_Sales">
12+
<section name="AdminCreditMemoViewItemsSection"/>
13+
<section name="AdminCreditMemoViewTotalSection"/>
14+
</page>
15+
</pages>
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
/**
4+
* Copyright © Magento, Inc. All rights reserved.
5+
* See COPYING.txt for license details.
6+
*/
7+
-->
8+
9+
<pages xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Page/etc/PageObject.xsd">
11+
<page name="AdminCreditMemosGridPage" url="sales/creditmemo/" area="admin" module="Magento_Sales">
12+
<section name="AdminCreditMemosGridSection"/>
13+
</page>
14+
</pages>

app/code/Magento/Sales/Test/Mftf/Section/AdminCreditMemoTotalSection.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<element name="subtotalRow" type="text" selector=".order-subtotal-table tbody > tr:nth-of-type({{row}}) td span.price" parameterized="true"/>
1313
<element name="total" type="text" selector="//table[contains(@class,'order-subtotal-table')]/tbody/tr/td[contains(text(), '{{total}}')]/following-sibling::td//span[contains(@class, 'price')]" parameterized="true"/>
1414
<element name="refundShipping" type="input" selector=".order-subtotal-table tbody input[name='creditmemo[shipping_amount]']"/>
15-
<element name="adjustmentRefund" type="input" selector=".order-subtotal-table tbody input[name='creditmemo[adjustment_positive]'"/>
15+
<element name="adjustmentRefund" type="input" selector=".order-subtotal-table tbody input[name='creditmemo[adjustment_positive]']"/>
1616
<element name="adjustmentFee" type="input" selector=".order-subtotal-table tbody input[name='creditmemo[adjustment_negative]']"/>
1717
<element name="grandTotal" type="text" selector=".order-subtotal-table tfoot tr.col-0>td span.price"/>
1818
<element name="appendComments" type="checkbox" selector=".order-totals-actions #notify_customer"/>
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
/**
4+
* Copyright © Magento, Inc. All rights reserved.
5+
* See COPYING.txt for license details.
6+
*/
7+
-->
8+
9+
<sections xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Page/etc/SectionObject.xsd">
11+
<section name="AdminCreditMemoViewItemsSection">
12+
<element name="blockItemsRefunded" type="block" selector="#creditmemo_items_container"/>
13+
<element name="productName" type="text" selector="td.col-product > div.product-title"/>
14+
<element name="productPrice" type="text" selector=".col-price > .price-excl-tax > .price"/>
15+
<element name="productQty" type="text" selector="td.col-qty"/>
16+
</section>
17+
</sections>
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
/**
4+
* Copyright © Magento, Inc. All rights reserved.
5+
* See COPYING.txt for license details.
6+
*/
7+
-->
8+
9+
<sections xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Page/etc/SectionObject.xsd">
11+
<section name="AdminCreditMemoViewTotalSection">
12+
<element name="subtotal" type="text" selector="//td[contains(text(), 'Subtotal')]/following-sibling::td//span[@class='price']"/>
13+
<element name="adjustmentRefund" type="text" selector="//td[contains(text(), 'Adjustment Refund')]/following-sibling::td//span[@class='price']"/>
14+
<element name="adjustmentFee" type="text" selector="//td[contains(text(), 'Adjustment Fee')]/following-sibling::td//span[@class='price']"/>
15+
<element name="grandTotal" type="text" selector=".order-subtotal-table tfoot tr.col-0>td span.price"/>
16+
</section>
17+
</sections>

0 commit comments

Comments
 (0)