|
| 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 | +<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 10 | + xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd"> |
| 11 | + <test name="StorefrontAddressDeletedStreetAddressRemainsEmptyAfterRefreshTest"> |
| 12 | + <annotations> |
| 13 | + <features value="Checkout"/> |
| 14 | + <stories value="Guest checkout"/> |
| 15 | + <title value="Address Street Field Remain Empty when deleted even After Browser Refresh"/> |
| 16 | + <description value="Address Street Field Remain Empty when deleted even After Browser Refresh"/> |
| 17 | + <severity value="MINOR"/> |
| 18 | + <testCaseId value="MC-43255"/> |
| 19 | + <group value="checkout"/> |
| 20 | + </annotations> |
| 21 | + <before> |
| 22 | + <createData entity="simpleProductWithoutCategory" stepKey="createSimpleProduct"/> |
| 23 | + </before> |
| 24 | + <after> |
| 25 | + <deleteData createDataKey="createSimpleProduct" stepKey="deleteProduct"/> |
| 26 | + </after> |
| 27 | + <!--Step 1 Add simple product to the cart --> |
| 28 | + <actionGroup ref="StorefrontAddSimpleProductToShoppingCartActionGroup" stepKey="addProductToCart"> |
| 29 | + <argument name="product" value="$createSimpleProduct$"/> |
| 30 | + </actionGroup> |
| 31 | + |
| 32 | + <!--Step 2 Proceed to Checkout and be on Shipping page --> |
| 33 | + <actionGroup ref="GoToCheckoutFromMinicartActionGroup" stepKey="goToCheckout"/> |
| 34 | + |
| 35 | + <!--Step 3 Select Country as United Kingdom, select address street and Refresh the page--> |
| 36 | + <selectOption selector="{{CheckoutShippingSection.country}}" userInput="{{UK_Address.country_id}}" stepKey="selectUnitedKingdomCounty"/> |
| 37 | + <waitForPageLoad stepKey="waitFormToReloadAfterSelectCountry"/> |
| 38 | + <fillField selector="{{CheckoutShippingSection.street}}" userInput="{{UK_Address.street[0]}}" stepKey="enterAddressStreet"/> |
| 39 | + <actionGroup ref="ReloadPageActionGroup" stepKey="refreshPageAfterAddressIsAdded"/> |
| 40 | + <!-- Step 4 Assert Entered details should be retained and delete an address --> |
| 41 | + <seeInField selector="{{CheckoutShippingSection.street}}" userInput="{{UK_Address.street[0]}}" stepKey="seeAddressStreetUnitedKingdom"/> |
| 42 | + <clearField selector="{{CheckoutShippingSection.street}}" stepKey="deleteAddressStreet"/> |
| 43 | + <!-- Assert Entered details should be retained and State/Province field should be displayed as an optional field (without * ) --> |
| 44 | + <actionGroup ref="ReloadPageActionGroup" stepKey="refreshPageAfterAddressIsDeleted"/> |
| 45 | + <seeInField selector="{{CheckoutShippingSection.street}}" userInput="" stepKey="seeAddressStreetIsempty"/> |
| 46 | + </test> |
| 47 | +</tests> |
0 commit comments