Skip to content

Commit 147b7bf

Browse files
author
Dima Dromov
committed
Update test action group to select check money payment method
1 parent ccdd739 commit 147b7bf

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed
Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,17 @@
11
<?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-
-->
82

93
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
104
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
115
<actionGroup name="AdminOrderClickSubmitOrderActionGroup">
12-
<annotations>
13-
<description>Click "Submit Order" button for order.</description>
14-
</annotations>
15-
16-
<click selector="{{AdminOrderFormActionSection.SubmitOrder}}" stepKey="clickSubmitOrder"/>
17-
<waitForPageLoad stepKey="waitForOrderPageToLoad"/>
6+
<conditionalClick
7+
selector="{{AdminOrderFormPaymentSection.linkPaymentOptions}}"
8+
dependentSelector="{{AdminOrderFormPaymentSection.linkPaymentOptions}}"
9+
visible="true"
10+
stepKey="showPaymentOptions"
11+
before="clickSubmitOrder"
12+
/>
13+
<waitForElementVisible selector="{{AdminOrderFormPaymentSection.checkMoneyOption}}" stepKey="waitForPaymentOptions" after="showPaymentOptions"/>
14+
<selectOption selector="{{AdminOrderFormPaymentSection.checkMoneyOption}}" userInput="{{PaymentMethodCheckMoneyOrder.method}}" stepKey="checkCheckMoneyOrder" after="waitForPaymentOptions"/>
15+
<waitForPageLoad stepKey="waitForPaymentMethodSelected" after="checkCheckMoneyOrder" />
1816
</actionGroup>
1917
</actionGroups>

0 commit comments

Comments
 (0)