Skip to content

Commit 31e376a

Browse files
MC-37103: Create automated test for "Create order from customer page, free"
1 parent 70223c0 commit 31e376a

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed
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+
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
9+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
10+
<actionGroup name="AssertAdminFreePaymentActionGroup">
11+
<annotations>
12+
<description>Checks the free payment on the Admin Create Order page.</description>
13+
</annotations>
14+
<click selector="{{AdminOrderFormPaymentSection.linkPaymentOptions}}" stepKey="clickPaymentMethods"/>
15+
<see selector="{{AdminOrderFormPaymentSection.freePaymentLabel}}" userInput="No Payment Information Required" stepKey="checkFreeShipping"/>
16+
</actionGroup>
17+
</actionGroups>

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,6 @@
2828
<element name="cashOnDeliveryOption" type="radio" selector="#p_method_cashondelivery" timeout="30"/>
2929
<element name="purchaseOrderOption" type="radio" selector="#p_method_purchaseorder" timeout="30"/>
3030
<element name="purchaseOrderNumber" type="input" selector="#po_number"/>
31+
<element name="freePaymentLabel" type="text" selector="#order-billing_method_form label[for='p_method_free']"/>
3132
</section>
3233
</sections>

0 commit comments

Comments
 (0)