Skip to content

Commit 55bc7d1

Browse files
committed
Merge remote-tracking branch 'l3/MC-40772' into 2.4-bugfixes-031921
2 parents c48870b + 40ed77d commit 55bc7d1

File tree

2 files changed

+74
-0
lines changed

2 files changed

+74
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
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="AssertStorefrontGuestCheckoutShippingAddressFormPrefilledActionGroup">
12+
<annotations>
13+
<description>Verify that shipping address form is filled with provided customer and address information.</description>
14+
</annotations>
15+
<arguments>
16+
<argument name="customer" defaultValue="Simple_US_Customer" type="entity"/>
17+
<argument name="address" defaultValue="US_Address_TX" type="entity"/>
18+
</arguments>
19+
20+
<grabValueFrom selector="{{CheckoutShippingSection.email}}" stepKey="email"/>
21+
<grabValueFrom selector="{{CheckoutShippingSection.firstName}}" stepKey="firstname"/>
22+
<grabValueFrom selector="{{CheckoutShippingSection.lastName}}" stepKey="lastname"/>
23+
<grabValueFrom selector="{{CheckoutShippingSection.street}}" stepKey="street"/>
24+
<grabValueFrom selector="{{CheckoutShippingSection.city}}" stepKey="city"/>
25+
<grabValueFrom selector="{{CheckoutShippingSection.postcode}}" stepKey="postcode"/>
26+
<grabValueFrom selector="{{CheckoutShippingSection.telephone}}" stepKey="telephone"/>
27+
28+
<assertEquals stepKey="assertEmail">
29+
<actualResult type="variable">email</actualResult>
30+
<expectedResult type="string">{{customer.email}}</expectedResult>
31+
</assertEquals>
32+
<assertEquals stepKey="assertFirstName">
33+
<actualResult type="variable">firstname</actualResult>
34+
<expectedResult type="string">{{customer.firstName}}</expectedResult>
35+
</assertEquals>
36+
<assertEquals stepKey="assertLastName">
37+
<actualResult type="variable">lastname</actualResult>
38+
<expectedResult type="string">{{customer.lastName}}</expectedResult>
39+
</assertEquals>
40+
<assertEquals stepKey="assertStreet">
41+
<actualResult type="variable">street</actualResult>
42+
<expectedResult type="string">{{address.street[0]}}</expectedResult>
43+
</assertEquals>
44+
<assertEquals stepKey="assertCity">
45+
<actualResult type="variable">city</actualResult>
46+
<expectedResult type="string">{{address.city}}</expectedResult>
47+
</assertEquals>
48+
<seeOptionIsSelected selector="{{CheckoutShippingSection.region}}" userInput="{{address.state}}" stepKey="assertRegion"/>
49+
<seeOptionIsSelected selector="{{CheckoutShippingSection.country}}" userInput="{{address.country}}" stepKey="assertCountry"/>
50+
<assertEquals stepKey="assertPostcode">
51+
<actualResult type="variable">postcode</actualResult>
52+
<expectedResult type="string">{{address.postcode}}</expectedResult>
53+
</assertEquals>
54+
<assertEquals stepKey="assertTelephone">
55+
<actualResult type="variable">telephone</actualResult>
56+
<expectedResult type="string">{{address.telephone}}</expectedResult>
57+
</assertEquals>
58+
</actionGroup>
59+
</actionGroups>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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="FillGuestCheckoutShippingAddressWithCountryAndStateActionGroup" extends="FillGuestCheckoutShippingAddressFormActionGroup">
12+
<selectOption selector="{{CheckoutShippingSection.country}}" userInput="{{customerAddress.country_id}}" after="SetCustomerCity" stepKey="selectCustomerCountry"/>
13+
<selectOption selector="{{CheckoutShippingSection.region}}" userInput="{{customerAddress.state}}" after="selectCustomerCountry" stepKey="SetCustomerState"/>
14+
</actionGroup>
15+
</actionGroups>

0 commit comments

Comments
 (0)