File tree Expand file tree Collapse file tree 3 files changed +34
-0
lines changed
Config/Test/Mftf/ActionGroup Expand file tree Collapse file tree 3 files changed +34
-0
lines changed Original file line number Diff line number Diff line change 42
42
<item >United Kingdom</item >
43
43
</array >
44
44
</entity >
45
+ <entity name =" WesternEurope" type =" countryArray" >
46
+ <array key =" country" >
47
+ <item >Belgium</item >
48
+ </array >
49
+ </entity >
45
50
</entities >
Original file line number Diff line number Diff line change
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 >
Original file line number Diff line number Diff line change 20
20
21
21
<before >
22
22
<actionGroup ref =" AdminLoginActionGroup" stepKey =" loginAsAdmin" />
23
+ <actionGroup ref =" UnselectStatesForStatesOptionsActionGroup" stepKey =" unselectStatesForStatesOptionsActionGroup" >
24
+ <argument name =" countries" value =" WesternEurope" />
25
+ </actionGroup >
23
26
<actionGroup ref =" StorefrontOpenCustomerAccountCreatePageActionGroup" stepKey =" openCreateAccountPage" />
24
27
<actionGroup ref =" StorefrontFillCustomerAccountCreationFormActionGroup" stepKey =" fillCreateAccountForm" >
25
28
<argument name =" customer" value =" CustomerEntityOne" />
You can’t perform that action at this time.
0 commit comments