Skip to content

Commit 8cfc539

Browse files
committed
adding AdminFillAccountInformationOnCreateOrderPageActionGroup
1 parent f472536 commit 8cfc539

7 files changed

+45
-14
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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+
9+
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
11+
<actionGroup name="AdminFillAccountInformationOnCreateOrderPageActionGroup">
12+
<arguments>
13+
<argument name="group" defaultValue="{{GeneralCustomerGroup.code}}" type="string"/>
14+
<argument name="email" type="string"/>
15+
</arguments>
16+
<selectOption selector="{{AdminOrderFormAccountSection.group}}" userInput="{{group}}" stepKey="selectCustomerGroup"/>
17+
<fillField selector="{{AdminOrderFormAccountSection.email}}" userInput="{{email}}" stepKey="fillCustomerEmail"/>
18+
</actionGroup>
19+
</actionGroups>

app/code/Magento/Sales/Test/Mftf/Test/AdminAvailabilityCreditMemoWithNoPaymentTest.xml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,10 @@
6161
<click selector="{{AdminOrderFormItemsSection.updateItemsAndQuantities}}" stepKey="clickUpdateItemsAndQuantitiesButton"/>
6262

6363
<!--Fill customer group and customer email-->
64-
<selectOption selector="{{AdminOrderFormAccountSection.group}}" userInput="{{GeneralCustomerGroup.code}}" stepKey="selectCustomerGroup"/>
65-
<fillField selector="{{AdminOrderFormAccountSection.email}}" userInput="{{Simple_US_Customer.email}}" stepKey="fillCustomerEmail"/>
64+
<comment userInput="Fill Account Information" stepKey="selectCustomerGroup"/>
65+
<actionGroup ref="AdminFillAccountInformationOnCreateOrderPageActionGroup" stepKey="fillCustomerEmail">
66+
<argument name="email" value="{{Simple_US_Customer.email}}"/>
67+
</actionGroup>
6668

6769
<!--Fill customer address information-->
6870
<actionGroup ref="FillOrderCustomerInformationActionGroup" stepKey="fillCustomerAddress">

app/code/Magento/Sales/Test/Mftf/Test/AdminCreateOrderWithMinimumAmountEnabledTest.xml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,11 @@
4545
</actionGroup>
4646

4747
<!--Fill customer group information-->
48-
<selectOption selector="{{AdminOrderFormAccountSection.group}}" userInput="{{GeneralCustomerGroup.code}}" stepKey="selectGroup"/>
49-
<fillField selector="{{AdminOrderFormAccountSection.email}}" userInput="{{Simple_US_Customer.email}}" stepKey="fillEmail"/>
50-
48+
<comment userInput="Fill Account Information" stepKey="selectGroup"/>
49+
<actionGroup ref="AdminFillAccountInformationOnCreateOrderPageActionGroup" stepKey="fillEmail">
50+
<argument name="email" value="{{Simple_US_Customer.email}}"/>
51+
</actionGroup>
52+
5153
<!--Fill customer address information-->
5254
<actionGroup ref="FillOrderCustomerInformationActionGroup" stepKey="fillCustomerAddress">
5355
<argument name="customer" value="Simple_US_Customer"/>

app/code/Magento/Sales/Test/Mftf/Test/AdminSubmitsOrderPaymentMethodValidationTest.xml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,11 @@
4848
<scrollToTopOfPage stepKey="scrollToTopOfOrderFormPage" after="seePaymentMethodRequired"/>
4949

5050
<!--Fill customer group and customer email-->
51-
<selectOption selector="{{AdminOrderFormAccountSection.group}}" userInput="{{GeneralCustomerGroup.code}}" stepKey="selectCustomerGroup" after="scrollToTopOfOrderFormPage"/>
52-
<fillField selector="{{AdminOrderFormAccountSection.email}}" userInput="{{Simple_US_Customer.email}}" stepKey="fillCustomerEmail" after="selectCustomerGroup"/>
53-
51+
<comment userInput="Fill Account Information" stepKey="selectCustomerGroup"/>
52+
<actionGroup ref="AdminFillAccountInformationOnCreateOrderPageActionGroup" stepKey="fillCustomerEmail">
53+
<argument name="email" value="{{Simple_US_Customer.email}}"/>
54+
</actionGroup>
55+
5456
<!--Fill customer address information-->
5557
<actionGroup ref="FillOrderCustomerInformationActionGroup" stepKey="fillCustomerAddress" after="fillCustomerEmail">
5658
<argument name="customer" value="Simple_US_Customer"/>

app/code/Magento/Sales/Test/Mftf/Test/AdminSubmitsOrderWithAndWithoutEmailTest.xml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,10 @@
4646
</actionGroup>
4747

4848
<!--Fill customer group and customer email-->
49-
<selectOption selector="{{AdminOrderFormAccountSection.group}}" userInput="{{GeneralCustomerGroup.code}}" stepKey="selectCustomerGroup" after="addSimpleProductToOrder"/>
50-
<fillField selector="{{AdminOrderFormAccountSection.email}}" userInput="{{Simple_US_Customer.email}}" stepKey="fillCustomerEmail" after="selectCustomerGroup"/>
49+
<comment userInput="Fill Account Information" stepKey="selectCustomerGroup" after="addSimpleProductToOrder"/>
50+
<actionGroup ref="AdminFillAccountInformationOnCreateOrderPageActionGroup" stepKey="fillCustomerEmail" after="selectCustomerGroup">
51+
<argument name="email" value="{{Simple_US_Customer.email}}"/>
52+
</actionGroup>
5153

5254
<!--Fill customer address information-->
5355
<actionGroup ref="FillOrderCustomerInformationActionGroup" stepKey="fillCustomerAddress" after="fillCustomerEmail">

app/code/Magento/Sales/Test/Mftf/Test/AdminSubmitsOrderWithAndWithoutFieldsValidationTest.xml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,10 @@
4545
</actionGroup>
4646

4747
<!--Fill customer group and customer email-->
48-
<selectOption selector="{{AdminOrderFormAccountSection.group}}" userInput="{{GeneralCustomerGroup.code}}" stepKey="selectCustomerGroup" after="addSimpleProductToOrder"/>
49-
<fillField selector="{{AdminOrderFormAccountSection.email}}" userInput="{{Simple_US_Customer.email}}" stepKey="fillCustomerEmail" after="selectCustomerGroup"/>
48+
<comment userInput="Fill Account Information" stepKey="selectCustomerGroup" after="addSimpleProductToOrder"/>
49+
<actionGroup ref="AdminFillAccountInformationOnCreateOrderPageActionGroup" stepKey="fillCustomerEmail" after="selectCustomerGroup">
50+
<argument name="email" value="{{Simple_US_Customer.email}}"/>
51+
</actionGroup>
5052

5153
<!--Fill wrong customer address information-->
5254
<actionGroup ref="FillOrderCustomerInformationActionGroup" stepKey="fillWrongCustomerAddress" after="fillCustomerEmail">

app/code/Magento/Tax/Test/Mftf/Test/AdminCheckingTaxReportGridTest.xml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,10 @@
154154
</actionGroup>
155155

156156
<!--Fill customer group and customer email-->
157-
<selectOption selector="{{AdminOrderFormAccountSection.group}}" userInput="{{GeneralCustomerGroup.code}}" stepKey="selectCustomerGroup"/>
158-
<fillField selector="{{AdminOrderFormAccountSection.email}}" userInput="{{Simple_US_Customer.email}}" stepKey="fillCustomerEmail"/>
157+
<comment userInput="Fill Account Information" stepKey="selectCustomerGroup"/>
158+
<actionGroup ref="AdminFillAccountInformationOnCreateOrderPageActionGroup" stepKey="fillCustomerEmail">
159+
<argument name="email" value="{{Simple_US_Customer.email}}"/>
160+
</actionGroup>
159161

160162
<!--Fill customer address information-->
161163
<actionGroup ref="FillOrderCustomerInformationActionGroup" stepKey="fillCustomerAddress">

0 commit comments

Comments
 (0)