Skip to content

Commit 726d859

Browse files
ACQE-6648: StorefrontUpdateCustomerAddressBelgiumTest
action group added to remove belgium
1 parent cf2ea5d commit 726d859

File tree

3 files changed

+34
-0
lines changed

3 files changed

+34
-0
lines changed

app/code/Magento/Checkout/Test/Mftf/Data/CountryData.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,9 @@
4242
<item>United Kingdom</item>
4343
</array>
4444
</entity>
45+
<entity name="WesternEurope" type="countryArray">
46+
<array key="country">
47+
<item>Belgium</item>
48+
</array>
49+
</entity>
4550
</entities>
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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+
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
11+
<actionGroup name="UnselectStatesForStatesOptionsActionGroup">
12+
<annotations>
13+
<description>Goes to the 'Configuration' page for 'General'. Selects the provided States under 'State is Required for'. Clicks on the Save button.</description>
14+
</annotations>
15+
<arguments>
16+
<argument name="countries" type="entity"/>
17+
</arguments>
18+
<amOnPage url="{{AdminConfigGeneralPage.url}}" stepKey="navigateToAdminConfigGeneralPage"/>
19+
<conditionalClick selector="{{StateOptionsSection.stateOptions}}" dependentSelector="{{StateOptionsSection.countriesWithRequiredRegions}}" visible="false" stepKey="expandStateOptionsTab"/>
20+
<waitForAjaxLoad stepKey="waitForAjax"/>
21+
<scrollTo selector="{{StateOptionsSection.countriesWithRequiredRegions}}" stepKey="scrollToForm"/>
22+
<unselectOption selector="{{StateOptionsSection.countriesWithRequiredRegions}}" parameterArray="[{{countries.country}}]" stepKey="selectCountriesWithRequiredRegion"/>
23+
<click selector="#save" stepKey="saveConfig"/>
24+
<waitForPageLoad stepKey="waitForSavingConfig"/>
25+
</actionGroup>
26+
</actionGroups>

app/code/Magento/Customer/Test/Mftf/Test/StorefrontUpdateCustomerAddressBelgiumTest.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020

2121
<before>
2222
<actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>
23+
<actionGroup ref="UnselectStatesForStatesOptionsActionGroup" stepKey="unselectStatesForStatesOptionsActionGroup">
24+
<argument name="countries" value="WesternEurope"/>
25+
</actionGroup>
2326
<actionGroup ref="StorefrontOpenCustomerAccountCreatePageActionGroup" stepKey="openCreateAccountPage"/>
2427
<actionGroup ref="StorefrontFillCustomerAccountCreationFormActionGroup" stepKey="fillCreateAccountForm">
2528
<argument name="customer" value="CustomerEntityOne"/>

0 commit comments

Comments
 (0)