File tree Expand file tree Collapse file tree 3 files changed +45
-0
lines changed
Config/Test/Mftf/ActionGroup Expand file tree Collapse file tree 3 files changed +45
-0
lines changed 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
+ <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 >
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 =" 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 >
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 =" states" value =" States" />
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