Skip to content

Commit 8706d3d

Browse files
committed
done modifiction on StorefrontGuestCheckoutWithDifferentShippingAndBillingAddressWithRestrictedCountriesForPaymentTest.xml
1 parent 0519952 commit 8706d3d

File tree

3 files changed

+20
-1
lines changed

3 files changed

+20
-1
lines changed

app/code/Magento/Checkout/Test/Mftf/Section/CheckoutPaymentSection.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,5 +66,6 @@
6666
<element name="discount" type="block" selector="tr.totals.discount"/>
6767
<element name="discountPrice" type="text" selector=".discount .price"/>
6868
<element name="billingAddressSameAsShippingCashOnDeliveryCheckbox" type="checkbox" selector="#billing-address-same-as-shipping-cashondelivery"/>
69+
<element name="guestRegion1" type="select" selector="//div[@class='field _required']//input[@name='region']"/>
6970
</section>
7071
</sections>

app/code/Magento/Checkout/Test/Mftf/Test/StorefrontGuestCheckoutWithDifferentShippingAndBillingAddressWithRestrictedCountriesForPaymentTest.xml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,11 @@
5252
<waitForLoadingMaskToDisappear stepKey="waitForBillingAddressFormLoads"/>
5353

5454
<!-- Fill Billing Address -->
55-
<actionGroup ref="StorefrontFillBillingAddressActionGroup" stepKey="fillBillingAddress"/>
55+
<actionGroup ref="StorefrontFillBillingAddressActionGroup" stepKey="fillBillingAddress">
56+
<argument name="address" value="CustomerUKAddressWithState"/>
57+
</actionGroup>
58+
<waitForElementVisible selector="{{CheckoutPaymentSection.guestRegion1}}" stepKey="waitForRegionToVisible"/>
59+
<fillField selector="{{CheckoutPaymentSection.guestRegion1}}" userInput="{{CustomerUKAddressWithState.state}}" stepKey="selectRegion"/>
5660
<click selector="{{CheckoutPaymentSection.update}}" stepKey="clickOnUpdateButton"/>
5761
<waitForLoadingMaskToDisappear stepKey="waitForLoadingMaskDisappear" />
5862
<see selector="{{CheckoutPaymentSection.paymentMethodTitle}}" userInput="Check / Money order" stepKey="sdadasdasdsdaasd"/>

app/code/Magento/Customer/Test/Mftf/Data/AddressData.xml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -446,4 +446,18 @@
446446
<data key="postcode">12345</data>
447447
<data key="telephone">512-345-6789</data>
448448
</entity>
449+
<entity name="CustomerUKAddressWithState" type="address">
450+
<data key="firstname">Jane</data>
451+
<data key="lastname">Miller</data>
452+
<data key="company">Magento</data>
453+
<data key="telephone">44 20 7123 1234</data>
454+
<array key="street">
455+
<item>1 London Bridge Street</item>
456+
</array>
457+
<data key="country_id">GB</data>
458+
<data key="country">United Kingdom</data>
459+
<data key="city">London</data>
460+
<data key="state">London</data>
461+
<data key="postcode">SE12 9GF</data>
462+
</entity>
449463
</entities>

0 commit comments

Comments
 (0)