Skip to content

Commit 0993a48

Browse files
MC-37103: Create automated test for "Create order from customer page, free"
1 parent a69f6c6 commit 0993a48

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

app/code/Magento/Sales/Test/Mftf/ActionGroup/AssertAdminFreePaymentActionGroup.xml renamed to app/code/Magento/Sales/Test/Mftf/ActionGroup/AssertAdminFreePaymentMethodExistsOnCreateOrderPageActionGroup.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
-->
88
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
99
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
10-
<actionGroup name="AssertAdminFreePaymentActionGroup">
10+
<actionGroup name="AssertAdminFreePaymentMethodExistsOnCreateOrderPageActionGroup">
1111
<annotations>
1212
<description>Checks the free payment on the Admin Create Order page.</description>
1313
</annotations>
1414
<click selector="{{AdminOrderFormPaymentSection.linkPaymentOptions}}" stepKey="clickPaymentMethods"/>
15-
<waitForAjaxLoad stepKey="waitForPaymentBlockLoad"/>
15+
<waitForElementVisible selector="{{AdminOrderFormPaymentSection.freePaymentLabel}}" stepKey="waitForPaymentLabelVisible"/>
1616
<see selector="{{AdminOrderFormPaymentSection.freePaymentLabel}}" userInput="No Payment Information Required" stepKey="checkFreePaymentLabel"/>
1717
</actionGroup>
1818
</actionGroups>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<element name="flatRateOption" type="radio" selector="#s_method_flatrate_flatrate" timeout="30"/>
1616
<element name="shippingError" type="text" selector="#order[has_shipping]-error"/>
1717
<element name="freeShippingOption" type="radio" selector="#s_method_freeshipping_freeshipping" timeout="30"/>
18-
<element name="linkPaymentOptions" type="button" selector="#order-billing_method_summary>a"/>
18+
<element name="linkPaymentOptions" type="button" selector="#order-billing_method_summary>a" timeout="30"/>
1919
<element name="blockPayment" type="text" selector="#order-billing_method"/>
2020
<element name="checkMoneyOption" type="radio" selector="#p_method_checkmo" timeout="30"/>
2121
<element name="checkBankTransfer" type="radio" selector="#p_method_banktransfer" timeout="30"/>

0 commit comments

Comments
 (0)