Skip to content

Commit dd09611

Browse files
ACQE-6648: StorefrontUpdateCustomerAddressBelgiumTest
added actiongroup to unselect belgium state
1 parent ba21d26 commit dd09611

File tree

3 files changed

+45
-0
lines changed

3 files changed

+45
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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+
<entities xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:DataGenerator/etc/dataProfileSchema.xsd">
11+
<entity name="States" type="stateArray">
12+
<array key="state">
13+
<item>Belgium</item>
14+
</array>
15+
</entity>
16+
</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="states" 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="[{{states.state}}]" 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="states" value="States"/>
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)