Skip to content

Commit 52c267f

Browse files
committed
ACP2E-1093: changes are done based PR Comments
1 parent 877e012 commit 52c267f

File tree

1 file changed

+5
-12
lines changed

1 file changed

+5
-12
lines changed

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

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -66,17 +66,10 @@
6666
<waitForElementClickable selector="{{AdminOrderFormShippingAddressSection.SameAsBilling}}" stepKey="waitForElementClickableSameAsBilling"/>
6767
<selectOption userInput="" selector="{{AdminOrderFormBillingAddressSection.selectAddress}}" stepKey="addNewBillingAddress" />
6868
<waitForAjaxLoad stepKey="waitForAjaxLoad"/>
69-
<fillField selector="{{AdminOrderFormBillingAddressSection.FirstName}}" userInput="{{US_Address_NY_Not_Default_Address.firstname}}" stepKey="fillBillingAddressFirstName"/>
70-
<fillField selector="{{AdminOrderFormBillingAddressSection.LastName}}" userInput="{{US_Address_NY_Not_Default_Address.lastname}}" stepKey="fillBillingAddressLastName"/>
71-
<fillField selector="{{AdminOrderFormBillingAddressSection.StreetLine1}}" userInput="{{US_Address_NY_Not_Default_Address.street[0]}}" stepKey="fillBillingAddressStreetLine1"/>
72-
<fillField selector="{{AdminOrderFormBillingAddressSection.StreetLine2}}" userInput="{{US_Address_NY_Not_Default_Address.street[1]}}" stepKey="fillBillingAddressStreetLine2"/>
73-
<selectOption userInput="{{US_Address_NY_Not_Default_Address.country}}" selector="{{AdminOrderFormBillingAddressSection.Country}}" stepKey="selectBillingAddressCountry"/>
74-
<waitForLoadingMaskToDisappear stepKey="waitForLoadingMaskToDisappearCountry"/>
75-
<selectOption userInput="{{US_Address_NY_Not_Default_Address.state}}" selector="{{AdminOrderFormBillingAddressSection.State}}" stepKey="selectBillingAddressState"/>
76-
<waitForLoadingMaskToDisappear stepKey="waitForLoadingMaskToDisappearState"/>
77-
<fillField selector="{{AdminOrderFormBillingAddressSection.City}}" userInput="{{US_Address_NY_Not_Default_Address.city}}" stepKey="fillBillingAddressCity"/>
78-
<fillField selector="{{AdminOrderFormBillingAddressSection.PostalCode}}" userInput="{{US_Address_NY_Not_Default_Address.postcode}}" stepKey="fillBillingAddressPostalCode"/>
79-
<fillField selector="{{AdminOrderFormBillingAddressSection.Phone}}" userInput="{{US_Address_NY_Not_Default_Address.telephone}}" stepKey="fillBillingAddressPhone"/>
69+
<actionGroup ref="FillOrderCustomerInformationActionGroup" stepKey="FillOrderNewShippingAddress">
70+
<argument name="customer" value="$$simpleCustomer$$"/>
71+
<argument name="address" value="US_Address_NY_Not_Default_Address"/>
72+
</actionGroup>
8073
<scrollTo selector="section#order-addresses" stepKey="scrollToSameAsBillingAddress2"/>
8174
<helper class="\Magento\Sales\Test\Mftf\Helper\AdminProductPage" method="rapidChecksOnCheckBox" stepKey="rapidClickOnSameAsBillingAddressCheckbox">
8275
<argument name="context">{{AdminOrderFormShippingAddressSection.SameAsBilling}}</argument>
@@ -90,7 +83,7 @@
9083
<argument name="suffix" value=""/>
9184
<argument name="company" value=""/>
9285
<argument name="streetLine1" value="{{US_Address_NY_Not_Default_Address.street[0]}}"/>
93-
<argument name="streetLine2" value="{{US_Address_NY_Not_Default_Address.street[1]}}"/>
86+
<argument name="streetLine2" value=""/>
9487
<argument name="countryId" value="{{US_Address_NY_Not_Default_Address.country_id}}"/>
9588
<argument name="state" value="{{US_Address_NY_Not_Default_Address.state}}"/>
9689
<argument name="province" value=""/>

0 commit comments

Comments
 (0)