|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<!-- |
| 3 | +/** |
| 4 | + * Copyright 2025 Adobe |
| 5 | + * All Rights Reserved. |
| 6 | + */ |
| 7 | +--> |
| 8 | + |
| 9 | +<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 10 | + xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd"> |
| 11 | + <test name="StorefrontGuestCheckoutWithSpecialCityNamesTest"> |
| 12 | + <annotations> |
| 13 | + <features value="Checkout"/> |
| 14 | + <stories value="Guest Checkout with Special Characters in City Name"/> |
| 15 | + <description value="Verify checkout with special characters in city names"/> |
| 16 | + <title value="Verify guest checkout accepts city names with digits, ampersand, period, and parenthesis"/> |
| 17 | + <severity value="MINOR"/> |
| 18 | + <testCaseId value="AC-15276"/> |
| 19 | + <group value="checkout"/> |
| 20 | + </annotations> |
| 21 | + <before> |
| 22 | + <!-- Create simple product for checkout --> |
| 23 | + <createData entity="SimpleProduct2" stepKey="createProduct"/> |
| 24 | + </before> |
| 25 | + <after> |
| 26 | + <!-- Delete created product --> |
| 27 | + <deleteData createDataKey="createProduct" stepKey="deleteSimpleProduct"/> |
| 28 | + </after> |
| 29 | + <!-- Test 1: City with period - "St. Moritz" --> |
| 30 | + <!-- Navigate to StoreFront --> |
| 31 | + <actionGroup ref="StorefrontOpenHomePageActionGroup" stepKey="goToStoreFront"/> |
| 32 | + <!-- Add product to cart --> |
| 33 | + <actionGroup ref="AddSimpleProductToCartActionGroup" stepKey="addProductToCartToPlaceOrderWithStMoritzAddress"> |
| 34 | + <argument name="product" value="$$createProduct$$"/> |
| 35 | + </actionGroup> |
| 36 | + <actionGroup ref="StorefrontOpenCheckoutPageActionGroup" stepKey="goToCheckoutToPlaceOrderWithStMoritzAddress"/> |
| 37 | + <!-- Fill Shipping Address --> |
| 38 | + <actionGroup ref="FillGuestCheckoutShippingAddressWithCountryAndStateActionGroup" stepKey="fillShippingFormDataWithStMoritzCity"> |
| 39 | + <argument name="customer" value="CustomerEntityOne"/> |
| 40 | + <argument name="customerAddress" value="CustomerAddressSimple"/> |
| 41 | + </actionGroup> |
| 42 | + <fillField selector="{{CheckoutShippingSection.city}}" userInput="{{Special_Characters_City.city1}}" stepKey="SetWithStMoritzCity"/> |
| 43 | + <!-- Click Next button --> |
| 44 | + <actionGroup ref="StorefrontGuestCheckoutProceedToPaymentStepActionGroup" stepKey="clickNextWithCityAsStMoritz"/> |
| 45 | + <!-- Place Order --> |
| 46 | + <actionGroup ref="CheckoutPlaceOrderActionGroup" stepKey="guestPlaceOrderWithCityAsStMoritz"> |
| 47 | + <argument name="orderNumberMessage" value="CONST.successGuestCheckoutOrderNumberMessage"/> |
| 48 | + <argument name="emailYouMessage" value="CONST.successCheckoutEmailYouMessage"/> |
| 49 | + </actionGroup> |
| 50 | + |
| 51 | + <!-- Test 2: City with period - "St. Petersburg" --> |
| 52 | + <!-- Add product to cart --> |
| 53 | + <actionGroup ref="AddSimpleProductToCartActionGroup" stepKey="addProductToCartToPlaceOrderWithStPetersburgAddress"> |
| 54 | + <argument name="product" value="$$createProduct$$"/> |
| 55 | + </actionGroup> |
| 56 | + <actionGroup ref="StorefrontOpenCheckoutPageActionGroup" stepKey="goToCheckoutToPlaceOrderWithStPetersburgAddress"/> |
| 57 | + <!-- Fill Shipping Address --> |
| 58 | + <actionGroup ref="FillGuestCheckoutShippingAddressWithCountryAndStateActionGroup" stepKey="fillShippingFormDataWithStPetersburgCity"> |
| 59 | + <argument name="customer" value="CustomerEntityOne"/> |
| 60 | + <argument name="customerAddress" value="CustomerAddressSimple"/> |
| 61 | + </actionGroup> |
| 62 | + <fillField selector="{{CheckoutShippingSection.city}}" userInput="{{Special_Characters_City.city2}}" stepKey="SetWithStPetersburgCity"/> |
| 63 | + <!-- Click Next button --> |
| 64 | + <actionGroup ref="StorefrontGuestCheckoutProceedToPaymentStepActionGroup" stepKey="clickNextWithCityAsStPetersburg"/> |
| 65 | + <!-- Place Order --> |
| 66 | + <actionGroup ref="CheckoutPlaceOrderActionGroup" stepKey="guestPlaceOrderWithCityAsStPetersburg"> |
| 67 | + <argument name="orderNumberMessage" value="CONST.successGuestCheckoutOrderNumberMessage"/> |
| 68 | + <argument name="emailYouMessage" value="CONST.successCheckoutEmailYouMessage"/> |
| 69 | + </actionGroup> |
| 70 | + |
| 71 | + <!-- Test 3: City with ampersand - "Brighton & Hove" --> |
| 72 | + <!-- Add product to cart --> |
| 73 | + <actionGroup ref="AddSimpleProductToCartActionGroup" stepKey="addProductToCartToPlaceOrderWithBrightonAndHoveAddress"> |
| 74 | + <argument name="product" value="$$createProduct$$"/> |
| 75 | + </actionGroup> |
| 76 | + <actionGroup ref="StorefrontOpenCheckoutPageActionGroup" stepKey="goToCheckoutToPlaceOrderWithBrightonAndHoveAddress"/> |
| 77 | + <!-- Fill Shipping Address --> |
| 78 | + <actionGroup ref="FillGuestCheckoutShippingAddressWithCountryAndStateActionGroup" stepKey="fillShippingFormDataWithBrightonAndHoveCity"> |
| 79 | + <argument name="customer" value="CustomerEntityOne"/> |
| 80 | + <argument name="customerAddress" value="CustomerAddressSimple"/> |
| 81 | + </actionGroup> |
| 82 | + <fillField selector="{{CheckoutShippingSection.city}}" userInput="{{Special_Characters_City.city3}}" stepKey="SetWithBrightonAndHoveCity"/> |
| 83 | + <!-- Click Next button --> |
| 84 | + <actionGroup ref="StorefrontGuestCheckoutProceedToPaymentStepActionGroup" stepKey="clickNextWithCityAsBrightonAndHove"/> |
| 85 | + <!-- Place Order --> |
| 86 | + <actionGroup ref="CheckoutPlaceOrderActionGroup" stepKey="guestPlaceOrderWithCityAsBrightonAndHove"> |
| 87 | + <argument name="orderNumberMessage" value="CONST.successGuestCheckoutOrderNumberMessage"/> |
| 88 | + <argument name="emailYouMessage" value="CONST.successCheckoutEmailYouMessage"/> |
| 89 | + </actionGroup> |
| 90 | + |
| 91 | + <!-- Test 4: City with period - "St. Davids" --> |
| 92 | + <!-- Add product to cart --> |
| 93 | + <actionGroup ref="AddSimpleProductToCartActionGroup" stepKey="addProductToCartToPlaceOrderWithStDavidAddress"> |
| 94 | + <argument name="product" value="$$createProduct$$"/> |
| 95 | + </actionGroup> |
| 96 | + <actionGroup ref="StorefrontOpenCheckoutPageActionGroup" stepKey="goToCheckoutToPlaceOrderWithStDavidAddress"/> |
| 97 | + <!-- Fill Shipping Address --> |
| 98 | + <actionGroup ref="FillGuestCheckoutShippingAddressWithCountryAndStateActionGroup" stepKey="fillShippingFormDataWithStDavidCity"> |
| 99 | + <argument name="customer" value="CustomerEntityOne"/> |
| 100 | + <argument name="customerAddress" value="CustomerAddressSimple"/> |
| 101 | + </actionGroup> |
| 102 | + <fillField selector="{{CheckoutShippingSection.city}}" userInput="{{Special_Characters_City.city4}}" stepKey="SetWithStDavidCity"/> |
| 103 | + <!-- Click Next button --> |
| 104 | + <actionGroup ref="StorefrontGuestCheckoutProceedToPaymentStepActionGroup" stepKey="clickNextWithCityAsStDavid"/> |
| 105 | + <!-- Place Order --> |
| 106 | + <actionGroup ref="CheckoutPlaceOrderActionGroup" stepKey="guestPlaceOrderWithCityAsStDavid"> |
| 107 | + <argument name="orderNumberMessage" value="CONST.successGuestCheckoutOrderNumberMessage"/> |
| 108 | + <argument name="emailYouMessage" value="CONST.successCheckoutEmailYouMessage"/> |
| 109 | + </actionGroup> |
| 110 | + |
| 111 | + <!-- Test 5: City with digits - "29 Palms" --> |
| 112 | + <!-- Add product to cart --> |
| 113 | + <actionGroup ref="AddSimpleProductToCartActionGroup" stepKey="addProductToCartToPlaceOrderWith29PalmsAddress"> |
| 114 | + <argument name="product" value="$$createProduct$$"/> |
| 115 | + </actionGroup> |
| 116 | + <actionGroup ref="StorefrontOpenCheckoutPageActionGroup" stepKey="goToCheckoutToPlaceOrderWith29PalmsAddress"/> |
| 117 | + <!-- Fill Shipping Address --> |
| 118 | + <actionGroup ref="FillGuestCheckoutShippingAddressWithCountryAndStateActionGroup" stepKey="fillShippingFormDataWith29PalmsCity"> |
| 119 | + <argument name="customer" value="CustomerEntityOne"/> |
| 120 | + <argument name="customerAddress" value="CustomerAddressSimple"/> |
| 121 | + </actionGroup> |
| 122 | + <fillField selector="{{CheckoutShippingSection.city}}" userInput="{{Special_Characters_City.city5}}" stepKey="SetWith29PalmsCity"/> |
| 123 | + <!-- Click Next button --> |
| 124 | + <actionGroup ref="StorefrontGuestCheckoutProceedToPaymentStepActionGroup" stepKey="clickNextWithCityAs29Palms"/> |
| 125 | + <!-- Place Order --> |
| 126 | + <actionGroup ref="CheckoutPlaceOrderActionGroup" stepKey="guestPlaceOrderWithCityAs29Palms"> |
| 127 | + <argument name="orderNumberMessage" value="CONST.successGuestCheckoutOrderNumberMessage"/> |
| 128 | + <argument name="emailYouMessage" value="CONST.successCheckoutEmailYouMessage"/> |
| 129 | + </actionGroup> |
| 130 | + |
| 131 | + <!-- Test 6: City with parenthesis - "Anywhere (North)" --> |
| 132 | + <!-- Add product to cart --> |
| 133 | + <actionGroup ref="AddSimpleProductToCartActionGroup" stepKey="addProductToCartToPlaceOrderWithNorthAmericaPartAddress"> |
| 134 | + <argument name="product" value="$$createProduct$$"/> |
| 135 | + </actionGroup> |
| 136 | + <actionGroup ref="StorefrontOpenCheckoutPageActionGroup" stepKey="goToCheckoutToPlaceOrderWithNorthAmericaPartAddress"/> |
| 137 | + <!-- Fill Shipping Address --> |
| 138 | + <actionGroup ref="FillGuestCheckoutShippingAddressWithCountryAndStateActionGroup" stepKey="fillShippingFormDataWithNorthAmericaPartCity"> |
| 139 | + <argument name="customer" value="CustomerEntityOne"/> |
| 140 | + <argument name="customerAddress" value="CustomerAddressSimple"/> |
| 141 | + </actionGroup> |
| 142 | + <fillField selector="{{CheckoutShippingSection.city}}" userInput="{{Special_Characters_City.city6}}" stepKey="SetWithNorthAmericaPartCity"/> |
| 143 | + <!-- Click Next button --> |
| 144 | + <actionGroup ref="StorefrontGuestCheckoutProceedToPaymentStepActionGroup" stepKey="clickNextWithCityAsNorthAmericaPart"/> |
| 145 | + <!-- Place Order --> |
| 146 | + <actionGroup ref="CheckoutPlaceOrderActionGroup" stepKey="guestPlaceOrderWithCityAsNorthAmericaPart"> |
| 147 | + <argument name="orderNumberMessage" value="CONST.successGuestCheckoutOrderNumberMessage"/> |
| 148 | + <argument name="emailYouMessage" value="CONST.successCheckoutEmailYouMessage"/> |
| 149 | + </actionGroup> |
| 150 | + </test> |
| 151 | +</tests> |
0 commit comments