Skip to content

Commit 8281eb2

Browse files
author
Dima Dromov
committed
Prevent to override action group
1 parent 147b7bf commit 8281eb2

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

app/code/Meta/Sales/Test/Mftf/ActionGroup/AdminOrderClickSubmitOrderActionGroup.xml renamed to app/code/Meta/Sales/Test/Mftf/ActionGroup/AdminOrderClickSelectPaymentSubmitOrderActionGroup.xml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22

33
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
44
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
5-
<actionGroup name="AdminOrderClickSubmitOrderActionGroup">
5+
<actionGroup name="AdminOrderClickSelectPaymentSubmitOrderActionGroup">
6+
<annotations>
7+
<description>Click "Submit Order" button for order.</description>
8+
</annotations>
69
<conditionalClick
710
selector="{{AdminOrderFormPaymentSection.linkPaymentOptions}}"
811
dependentSelector="{{AdminOrderFormPaymentSection.linkPaymentOptions}}"
@@ -13,5 +16,7 @@
1316
<waitForElementVisible selector="{{AdminOrderFormPaymentSection.checkMoneyOption}}" stepKey="waitForPaymentOptions" after="showPaymentOptions"/>
1417
<selectOption selector="{{AdminOrderFormPaymentSection.checkMoneyOption}}" userInput="{{PaymentMethodCheckMoneyOrder.method}}" stepKey="checkCheckMoneyOrder" after="waitForPaymentOptions"/>
1518
<waitForPageLoad stepKey="waitForPaymentMethodSelected" after="checkCheckMoneyOrder" />
19+
<click selector="{{AdminOrderFormActionSection.SubmitOrder}}" stepKey="clickSubmitOrder"/>
20+
<waitForPageLoad stepKey="waitForOrderPageToLoad"/>
1621
</actionGroup>
1722
</actionGroups>
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
3+
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
4+
<test name="AdminReportsOrderedGroupedBySkuTest">
5+
<actionGroup ref="AdminOrderClickSelectPaymentSubmitOrderActionGroup" stepKey="submitFirstOrder" />
6+
<actionGroup ref="AdminOrderClickSelectPaymentSubmitOrderActionGroup" stepKey="submitSecondOrder" />
7+
</test>
8+
</tests>

0 commit comments

Comments
 (0)