Skip to content

Commit eecc0df

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

13 files changed

+100
-1
lines changed

app/code/Meta/Sales/Test/Mftf/ActionGroup/AdminSubmitOrderActionGroup.xml renamed to app/code/Meta/Sales/Test/Mftf/ActionGroup/AdminSelectPaymentSubmitOrderActionGroup.xml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
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="AdminSubmitOrderActionGroup">
5+
<actionGroup name="AdminSelectPaymentSubmitOrderActionGroup">
66
<conditionalClick
77
selector="{{AdminOrderFormPaymentSection.linkPaymentOptions}}"
88
dependentSelector="{{AdminOrderFormPaymentSection.linkPaymentOptions}}"
@@ -13,5 +13,9 @@
1313
<waitForElementVisible selector="{{AdminOrderFormPaymentSection.checkMoneyOption}}" stepKey="waitForPaymentOptions" after="showPaymentOptions"/>
1414
<selectOption selector="{{AdminOrderFormPaymentSection.checkMoneyOption}}" userInput="{{PaymentMethodCheckMoneyOrder.method}}" stepKey="checkCheckMoneyOrder" after="waitForPaymentOptions"/>
1515
<waitForPageLoad stepKey="waitForPaymentMethodSelected" after="checkCheckMoneyOrder" />
16+
<scrollTo selector="{{OrdersGridSection.submitOrder}}" stepKey="scrollToSubmitButton"/>
17+
<click selector="{{OrdersGridSection.submitOrder}}" stepKey="submitOrder"/>
18+
<waitForPageLoad stepKey="waitForPageLoad"/>
19+
<see stepKey="seeSuccessMessageForOrder" userInput="You created the order."/>
1620
</actionGroup>
1721
</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"
4+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
5+
<test name="AdminCheckCreditMemoTotalsTest">
6+
<actionGroup ref="AdminSelectPaymentSubmitOrderActionGroup" stepKey="submitOrder"/>
7+
</test>
8+
</tests>
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"
4+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
5+
<test name="AdminCreateCreditmemoWithBundleProductTest">
6+
<actionGroup ref="AdminSelectPaymentSubmitOrderActionGroup" stepKey="submitOrder"/>
7+
</test>
8+
</tests>
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"
4+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
5+
<test name="AdminCreateOrderCustomStoreShippingMethodTableRatesTest">
6+
<actionGroup ref="AdminSelectPaymentSubmitOrderActionGroup" stepKey="submitOrder"/>
7+
</test>
8+
</tests>
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"
4+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
5+
<test name="AdminCreateOrderWithConfigurableProductTest">
6+
<actionGroup ref="AdminSelectPaymentSubmitOrderActionGroup" stepKey="submitOrder"/>
7+
</test>
8+
</tests>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
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="AdminCreateOrderWithCustomerWithoutEmailTest">
5+
<actionGroup ref="AdminSelectPaymentSubmitOrderActionGroup" stepKey="submitOrder"/>
6+
</test>
7+
</tests>
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"
4+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
5+
<test name="AdminCreateOrderWithSelectedShoppingCartItemsTest">
6+
<actionGroup ref="AdminSelectPaymentSubmitOrderActionGroup" stepKey="submitOrder"/>
7+
</test>
8+
</tests>
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"
4+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
5+
<test name="AdminEditOrderWithOutOfStockConfigurableProductTest">
6+
<actionGroup ref="AdminSelectPaymentSubmitOrderActionGroup" stepKey="submitEditedOrder"/>
7+
</test>
8+
</tests>
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"
4+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
5+
<test name="AdminEditOrderWithOutOfStockProductTest">
6+
<actionGroup ref="AdminSelectPaymentSubmitOrderActionGroup" stepKey="submitEditedOrder"/>
7+
</test>
8+
</tests>
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"
4+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
5+
<test name="AdminReorderAddressNotSavedInAddressBookTest">
6+
<actionGroup ref="AdminSelectPaymentSubmitOrderActionGroup" stepKey="submitOrder"/>
7+
</test>
8+
</tests>

0 commit comments

Comments
 (0)