|
| 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="CheckingCountryDropDownWithOneAllowedCountryTest"> |
| 12 | + <annotations> |
| 13 | + <features value="Backend"/> |
| 14 | + <stories value="Dynamic Media URL"/> |
| 15 | + <title value="Verify that Allow Dynamic Media URLs setting is removed from configuration page"/> |
| 16 | + <description value="Verify that Allow Dynamic Media URLs setting is removed from configuration page"/> |
| 17 | + <severity value="CRITICAL"/> |
| 18 | + <useCaseId value="MC-1387564"/> |
| 19 | + <testCaseId value="MC-3185678"/> |
| 20 | + <group value="configuration"/> |
| 21 | + </annotations> |
| 22 | + <before> |
| 23 | + <actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/> |
| 24 | + <createData entity="EnableAdminAccountAllowCountry" stepKey="setAllowedCountries"/> |
| 25 | + |
| 26 | + </before> |
| 27 | + <after> |
| 28 | + <createData entity="DisableAdminAccountAllowCountry" stepKey="setDefaultValueForAllowCountries"/> |
| 29 | + <actionGroup ref="logout" stepKey="logout"/> |
| 30 | + </after> |
| 31 | + |
| 32 | + <!--Flush Magento Cache--> |
| 33 | + <magentoCLI stepKey="flushCache" command="cache:flush"/> |
| 34 | + |
| 35 | + <!--Create a customer account from Storefront--> |
| 36 | + <actionGroup ref="SignUpNewUserFromStorefrontActionGroup" stepKey="createAnAccount"> |
| 37 | + <argument name="Customer" value="CustomerEntityOne"/> |
| 38 | + </actionGroup> |
| 39 | + <click selector="{{CheckoutPaymentSection.addressBook}}" stepKey="goToAddressBook"/> |
| 40 | + <wait time="20" stepKey="kk"/> |
| 41 | + |
| 42 | + <click selector="{{StorefrontCustomerAddressSection.country}}" stepKey="clickToExpandCountryDropDown"/> |
| 43 | + <see selector="{{StorefrontCustomerAddressSection.country}}" userInput="United States" stepKey="seeSelectedCountry"/> |
| 44 | + <dontSee selector="{{StorefrontCustomerAddressSection.country}}" userInput="Brazil" stepKey="canNotSeeSelectedCountry"/> |
| 45 | + </test> |
| 46 | +</tests> |
| 47 | + |
| 48 | + |
0 commit comments