Skip to content

Commit

Permalink
ENGCOM-8495: [MFTF] Adding AdminFillAccountInformationOnCreateOrderPa…
Browse files Browse the repository at this point in the history
…geActionGroup #30986

 - Merge Pull Request #30986 from AnnaAPak/magento2:add-AdminFillAccountInformationOnCreateOrderPageActionGroup
 - Merged commits:
   1. 8cfc539
   2. b2a767d
   3. 98c0b0b
  • Loading branch information
magento-engcom-team committed Dec 7, 2020
2 parents 500a9e5 + 98c0b0b commit 716cf83
Show file tree
Hide file tree
Showing 7 changed files with 45 additions and 14 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->

<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
<actionGroup name="AdminFillAccountInformationOnCreateOrderPageActionGroup">
<arguments>
<argument name="group" defaultValue="{{GeneralCustomerGroup.code}}" type="string"/>
<argument name="email" type="string"/>
</arguments>
<selectOption selector="{{AdminOrderFormAccountSection.group}}" userInput="{{group}}" stepKey="selectCustomerGroup"/>
<fillField selector="{{AdminOrderFormAccountSection.email}}" userInput="{{email}}" stepKey="fillCustomerEmail"/>
</actionGroup>
</actionGroups>
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,10 @@
<click selector="{{AdminOrderFormItemsSection.updateItemsAndQuantities}}" stepKey="clickUpdateItemsAndQuantitiesButton"/>

<!--Fill customer group and customer email-->
<selectOption selector="{{AdminOrderFormAccountSection.group}}" userInput="{{GeneralCustomerGroup.code}}" stepKey="selectCustomerGroup"/>
<fillField selector="{{AdminOrderFormAccountSection.email}}" userInput="{{Simple_US_Customer.email}}" stepKey="fillCustomerEmail"/>
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="selectCustomerGroup"/>
<actionGroup ref="AdminFillAccountInformationOnCreateOrderPageActionGroup" stepKey="fillCustomerEmail">
<argument name="email" value="{{Simple_US_Customer.email}}"/>
</actionGroup>

<!--Fill customer address information-->
<actionGroup ref="FillOrderCustomerInformationActionGroup" stepKey="fillCustomerAddress">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,11 @@
</actionGroup>

<!--Fill customer group information-->
<selectOption selector="{{AdminOrderFormAccountSection.group}}" userInput="{{GeneralCustomerGroup.code}}" stepKey="selectGroup"/>
<fillField selector="{{AdminOrderFormAccountSection.email}}" userInput="{{Simple_US_Customer.email}}" stepKey="fillEmail"/>

<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="selectGroup"/>
<actionGroup ref="AdminFillAccountInformationOnCreateOrderPageActionGroup" stepKey="fillEmail">
<argument name="email" value="{{Simple_US_Customer.email}}"/>
</actionGroup>

<!--Fill customer address information-->
<actionGroup ref="FillOrderCustomerInformationActionGroup" stepKey="fillCustomerAddress">
<argument name="customer" value="Simple_US_Customer"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,11 @@
<scrollToTopOfPage stepKey="scrollToTopOfOrderFormPage" after="seePaymentMethodRequired"/>

<!--Fill customer group and customer email-->
<selectOption selector="{{AdminOrderFormAccountSection.group}}" userInput="{{GeneralCustomerGroup.code}}" stepKey="selectCustomerGroup" after="scrollToTopOfOrderFormPage"/>
<fillField selector="{{AdminOrderFormAccountSection.email}}" userInput="{{Simple_US_Customer.email}}" stepKey="fillCustomerEmail" after="selectCustomerGroup"/>

<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="selectCustomerGroup" after="scrollToTopOfOrderFormPage"/>
<actionGroup ref="AdminFillAccountInformationOnCreateOrderPageActionGroup" stepKey="fillCustomerEmail" after="selectCustomerGroup">
<argument name="email" value="{{Simple_US_Customer.email}}"/>
</actionGroup>

<!--Fill customer address information-->
<actionGroup ref="FillOrderCustomerInformationActionGroup" stepKey="fillCustomerAddress" after="fillCustomerEmail">
<argument name="customer" value="Simple_US_Customer"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,10 @@
</actionGroup>

<!--Fill customer group and customer email-->
<selectOption selector="{{AdminOrderFormAccountSection.group}}" userInput="{{GeneralCustomerGroup.code}}" stepKey="selectCustomerGroup" after="addSimpleProductToOrder"/>
<fillField selector="{{AdminOrderFormAccountSection.email}}" userInput="{{Simple_US_Customer.email}}" stepKey="fillCustomerEmail" after="selectCustomerGroup"/>
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="selectCustomerGroup" after="addSimpleProductToOrder"/>
<actionGroup ref="AdminFillAccountInformationOnCreateOrderPageActionGroup" stepKey="fillCustomerEmail" after="selectCustomerGroup">
<argument name="email" value="{{Simple_US_Customer.email}}"/>
</actionGroup>

<!--Fill customer address information-->
<actionGroup ref="FillOrderCustomerInformationActionGroup" stepKey="fillCustomerAddress" after="fillCustomerEmail">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,10 @@
</actionGroup>

<!--Fill customer group and customer email-->
<selectOption selector="{{AdminOrderFormAccountSection.group}}" userInput="{{GeneralCustomerGroup.code}}" stepKey="selectCustomerGroup" after="addSimpleProductToOrder"/>
<fillField selector="{{AdminOrderFormAccountSection.email}}" userInput="{{Simple_US_Customer.email}}" stepKey="fillCustomerEmail" after="selectCustomerGroup"/>
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="selectCustomerGroup" after="addSimpleProductToOrder"/>
<actionGroup ref="AdminFillAccountInformationOnCreateOrderPageActionGroup" stepKey="fillCustomerEmail" after="selectCustomerGroup">
<argument name="email" value="{{Simple_US_Customer.email}}"/>
</actionGroup>

<!--Fill wrong customer address information-->
<actionGroup ref="FillOrderCustomerInformationActionGroup" stepKey="fillWrongCustomerAddress" after="fillCustomerEmail">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,10 @@
</actionGroup>

<!--Fill customer group and customer email-->
<selectOption selector="{{AdminOrderFormAccountSection.group}}" userInput="{{GeneralCustomerGroup.code}}" stepKey="selectCustomerGroup"/>
<fillField selector="{{AdminOrderFormAccountSection.email}}" userInput="{{Simple_US_Customer.email}}" stepKey="fillCustomerEmail"/>
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="selectCustomerGroup"/>
<actionGroup ref="AdminFillAccountInformationOnCreateOrderPageActionGroup" stepKey="fillCustomerEmail">
<argument name="email" value="{{Simple_US_Customer.email}}"/>
</actionGroup>

<!--Fill customer address information-->
<actionGroup ref="FillOrderCustomerInformationActionGroup" stepKey="fillCustomerAddress">
Expand Down

0 comments on commit 716cf83

Please sign in to comment.