Skip to content

Commit 43e80e7

Browse files
committed
MAGETWO-96107: Additional blank option in country dropdown
- Added some corrections to automation test
1 parent a9d2dfc commit 43e80e7

File tree

3 files changed

+8
-16
lines changed

3 files changed

+8
-16
lines changed

app/code/Magento/Config/Test/Mftf/Data/CountryOptionConfigData.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
-->
88

99
<entities xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10-
xsi:noNamespaceSchemaLocation="../../../../../../../dev/tests/acceptance/vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/DataGenerator/etc/dataProfileSchema.xsd">
10+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:DataGenerator/etc/dataProfileSchema.xsd">
1111
<entity name="EnableAdminAccountAllowCountry" type="admin_account_country_options_config">
1212
<requiredEntity type="admin_account_country_options_value">AdminAccountAllowCountryUS</requiredEntity>
1313
</entity>

app/code/Magento/Config/Test/Mftf/Metadata/system_config-countries-meta.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*/
77
-->
88
<operations xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
9-
xsi:noNamespaceSchemaLocation="../../../../../../../dev/tests/acceptance/vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/DataGenerator/etc/dataOperation.xsd">
9+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:DataGenerator/etc/dataOperation.xsd">
1010
<operation name="AdminAccountCountryOptionConfig" dataType="admin_account_country_options_config" type="create" auth="adminFormKey" url="/admin/system_config/save/section/general/" method="POST">
1111
<object key="groups" dataType="admin_account_country_options_config">
1212
<object key="country" dataType="admin_account_country_options_config">

app/code/Magento/Config/Test/Mftf/Test/CheckingCountryDropDownWithOneAllowedCountryTest.xml

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,39 +10,31 @@
1010
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
1111
<test name="CheckingCountryDropDownWithOneAllowedCountryTest">
1212
<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"/>
13+
<features value="Config"/>
14+
<stories value="MAGETWO-96107: Additional blank option in country dropdown"/>
15+
<title value="Checking country drop-down with one allowed country"/>
16+
<description value="Check country drop-down with one allowed country"/>
17+
<severity value="MAJOR"/>
18+
<testCaseId value="MAGETWO-96133"/>
2019
<group value="configuration"/>
2120
</annotations>
2221
<before>
2322
<actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/>
2423
<createData entity="EnableAdminAccountAllowCountry" stepKey="setAllowedCountries"/>
25-
2624
</before>
2725
<after>
2826
<createData entity="DisableAdminAccountAllowCountry" stepKey="setDefaultValueForAllowCountries"/>
2927
<actionGroup ref="logout" stepKey="logout"/>
3028
</after>
31-
3229
<!--Flush Magento Cache-->
3330
<magentoCLI stepKey="flushCache" command="cache:flush"/>
34-
3531
<!--Create a customer account from Storefront-->
3632
<actionGroup ref="SignUpNewUserFromStorefrontActionGroup" stepKey="createAnAccount">
3733
<argument name="Customer" value="CustomerEntityOne"/>
3834
</actionGroup>
3935
<click selector="{{CheckoutPaymentSection.addressBook}}" stepKey="goToAddressBook"/>
40-
<wait time="20" stepKey="kk"/>
41-
4236
<click selector="{{StorefrontCustomerAddressSection.country}}" stepKey="clickToExpandCountryDropDown"/>
4337
<see selector="{{StorefrontCustomerAddressSection.country}}" userInput="United States" stepKey="seeSelectedCountry"/>
4438
<dontSee selector="{{StorefrontCustomerAddressSection.country}}" userInput="Brazil" stepKey="canNotSeeSelectedCountry"/>
4539
</test>
4640
</tests>
47-
48-

0 commit comments

Comments
 (0)