File tree Expand file tree Collapse file tree 4 files changed +34
-7
lines changed
Catalog/Test/Mftf/ActionGroup Expand file tree Collapse file tree 4 files changed +34
-7
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
+ <actionGroups xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
10
+ xsi : noNamespaceSchemaLocation =" ../../../../../../../dev/tests/acceptance/vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Test/etc/actionGroupSchema.xsd" >
11
+ <actionGroup name =" searchAndMultiSelectActionGroup" >
12
+ <arguments >
13
+ <argument name =" dropDownSelector" />
14
+ <argument name =" options" type =" string" />
15
+ </arguments >
16
+ <waitForPageLoad stepKey =" waitForPageLoad" />
17
+ <waitForElementVisible selector =" {{dropDownSelector}} .action-select.admin__action-multiselect" stepKey =" waitForDropdown" />
18
+ <click selector =" {{dropDownSelector}} .action-select.admin__action-multiselect" stepKey =" clickDropdown" />
19
+ <selectMultipleOptions filterSelector =" {{dropDownSelector}} .admin__action-multiselect-search-wrap>input" optionSelector =" {{dropDownSelector}} .admin__action-multiselect-label>span" stepKey =" selectSpecifiedOptions" >
20
+ <array >[{{options}}]</array >
21
+ </selectMultipleOptions >
22
+ </actionGroup >
23
+ </actionGroups >
Original file line number Diff line number Diff line change 13
13
<element name =" firstName" type =" input" selector =" input[name='customer[firstname]']" />
14
14
<element name =" lastName" type =" input" selector =" input[name='customer[lastname]']" />
15
15
<element name =" email" type =" input" selector =" input[name='customer[email]']" />
16
+ <element name =" group" type =" select" selector =" [name='customer[group_id]']" />
16
17
</section >
17
18
</sections >
Original file line number Diff line number Diff line change 7
7
-->
8
8
9
9
<tests xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
10
- xsi : noNamespaceSchemaLocation =" ../../../../../../../dev/tests/acceptance/vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Test/etc/testSchema.xsd" >
10
+ xsi : noNamespaceSchemaLocation =" ../../../../../../../dev/tests/acceptance/vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Test/etc/testSchema.xsd" >
11
11
<test name =" AdminCreateCustomerTest" >
12
12
<annotations >
13
13
<features value =" Customer Creation" />
18
18
<testCaseId value =" MAGETWO-72095" />
19
19
<group value =" customer" />
20
20
<group value =" create" />
21
- <group value =" skip" />
22
21
</annotations >
23
22
<after >
24
- <amOnPage url = " admin/admin/auth/ logout/ " stepKey =" amOnLogoutPage " />
23
+ <actionGroup ref = " logout" stepKey =" logout " />
25
24
</after >
26
25
27
26
<actionGroup ref =" LoginAsAdmin" stepKey =" loginAsAdmin1" />
28
- <amOnPage url =" {{AdminCustomerPage.url}}" stepKey =" navigateToCustomers" />
29
- <click selector =" {{AdminCustomerGridMainActionsSection.addNewCustomer}}" stepKey =" clickCreateCustomer" />
30
- <waitForElement selector =" {{AdminNewCustomerAccountInformationSection.firstName}}" stepKey =" waitInfoTab" />
27
+ <amOnPage url =" {{AdminNewCustomerPage.url}}" stepKey =" navigateToCreateCustomer" />
28
+ <waitForPageLoad time =" 30" stepKey =" waitForPageLoad" />
31
29
<fillField userInput =" {{CustomerEntityOne.firstname}}" selector =" {{AdminNewCustomerAccountInformationSection.firstName}}" stepKey =" fillFirstName" />
32
30
<fillField userInput =" {{CustomerEntityOne.lastname}}" selector =" {{AdminNewCustomerAccountInformationSection.lastName}}" stepKey =" fillLastName" />
33
31
<fillField userInput =" {{CustomerEntityOne.email}}" selector =" {{AdminNewCustomerAccountInformationSection.email}}" stepKey =" fillEmail" />
Original file line number Diff line number Diff line change 7
7
-->
8
8
9
9
<entities xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
10
- xsi : noNamespaceSchemaLocation =" ../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/DataGenerator/etc/dataProfileSchema.xsd" >
10
+ xsi : noNamespaceSchemaLocation =" ../../../../../../../dev/tests/acceptance/ vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/DataGenerator/etc/dataProfileSchema.xsd" >
11
11
<entity name =" GeneralCustomerGroup" type =" customerGroup" >
12
12
<data key =" code" >General</data >
13
13
</entity >
14
+ <entity name =" DefaultCustomerGroup" type =" customerGroup" >
15
+ <array key =" group_names" >
16
+ <item >General</item >
17
+ </array >
18
+ </entity >
14
19
</entities >
You can’t perform that action at this time.
0 commit comments