Skip to content

Commit b458a90

Browse files
committed
magento/partners-magento2b2b#534 Incorrect Shipping Address on Purchase Order Final Checkout Page
1 parent 7ea49be commit b458a90

File tree

2 files changed

+34
-1
lines changed

2 files changed

+34
-1
lines changed

app/code/Magento/Checkout/Test/Mftf/ActionGroup/FillNewShippingAddressModalActionGroup.xml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,14 @@
1616
<argument name="address"/>
1717
</arguments>
1818

19-
<selectOption stepKey="selectRegion" selector="{{CheckoutShippingSection.region}}" userInput="{{address.state}}" after="fillCityName"/>
19+
<selectOption stepKey="selectRegion" selector="{{CheckoutShippingAddressModalSection.region}}" userInput="{{address.state}}" after="fillCityName"/>
20+
<fillField stepKey="fillFirstName" selector="{{CheckoutShippingAddressModalSection.firstName}}" userInput="{{address.firstname}}"/>
21+
<fillField stepKey="fillLastName" selector="{{CheckoutShippingAddressModalSection.lastName}}" userInput="{{address.lastname}}"/>
22+
<fillField stepKey="fillCompany" selector="{{CheckoutShippingAddressModalSection.company}}" userInput="{{address.company}}"/>
23+
<fillField stepKey="fillPhoneNumber" selector="{{CheckoutShippingAddressModalSection.telephone}}" userInput="{{address.telephone}}"/>
24+
<fillField stepKey="fillStreetAddress" selector="{{CheckoutShippingAddressModalSection.street}}" userInput="{{address.street[0]}}"/>
25+
<fillField stepKey="fillCityName" selector="{{CheckoutShippingAddressModalSection.city}}" userInput="{{address.city}}"/>
26+
<selectOption stepKey="selectCounty" selector="{{CheckoutShippingAddressModalSection.country}}" userInput="{{address.country_id}}"/>
27+
<fillField stepKey="fillZip" selector="{{CheckoutShippingAddressModalSection.postcode}}" userInput="{{address.postcode}}"/>
2028
</actionGroup>
2129
</actionGroups>
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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+
<sections xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Page/etc/SectionObject.xsd">
11+
<section name="CheckoutShippingAddressModalSection">
12+
<element name="firstName" type="input" selector="//div[@id='shipping-new-address-form']//input[@name='firstname']"/>
13+
<element name="lastName" type="input" selector="//div[@id='shipping-new-address-form']//input[@name='lastname']"/>
14+
<element name="company" type="input" selector="//div[@id='shipping-new-address-form']//input[@name='company']"/>
15+
<element name="street" type="input" selector="//div[@id='shipping-new-address-form']//input[@name='street[0]']"/>
16+
<element name="street2" type="input" selector="//div[@id='shipping-new-address-form']//input[@name='street[1]']"/>
17+
<element name="city" type="input" selector="//div[@id='shipping-new-address-form']//input[@name='city']"/>
18+
<element name="region" type="select" selector="//div[@id='shipping-new-address-form']//select[@name='region_id']"/>
19+
<element name="postcode" type="input" selector="//div[@id='shipping-new-address-form']//input[@name='postcode']"/>
20+
<element name="country" type="select" selector="//div[@id='shipping-new-address-form']//select[@name='country_id']"/>
21+
<element name="telephone" type="input" selector="//div[@id='shipping-new-address-form']//input[@name='telephone']"/>
22+
<element name="saveAddress" type="button" selector="//div[@id='shipping-new-address-form']//button[contains(@class, 'action-save-address')]"/>
23+
<element name="cancelChangeAddress" type="button" selector="//div[@id='shipping-new-address-form']//button[contains(@class, 'action-hide-popup')]"/>
24+
</section>
25+
</sections>

0 commit comments

Comments
 (0)