Skip to content

Commit fb654a6

Browse files
committed
MAGETWO-86795: Admin Create Customer functional test fails on B2B edition
- Updated tests and action groups to correctly support B2B
1 parent 3a8b2d6 commit fb654a6

File tree

4 files changed

+11
-4
lines changed

4 files changed

+11
-4
lines changed

dev/tests/acceptance/tests/functional/Magento/FunctionalTest/Catalog/ActionGroup/SearchAndMultiselectActionGroup.xml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,14 @@
1010
xsi:noNamespaceSchemaLocation="../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Test/etc/actionGroupSchema.xsd">
1111
<actionGroup name="searchAndMultiSelectActionGroup">
1212
<arguments>
13-
<argument name="dropDownSelector"/>
14-
<argument name="options"/>
13+
<argument name="dropDownSelector" />
14+
<!-- TODO: Can changed when https://github.com/magento/magento2-functional-testing-framework/pull/89 is released -->
15+
<argument name="options" type="string"/>
1516
</arguments>
1617
<waitForPageLoad stepKey="waitForPageLoad"/>
1718
<waitForElementVisible selector="{{dropDownSelector}} .action-select.admin__action-multiselect" stepKey="waitForDropdown"/>
1819
<click selector="{{dropDownSelector}} .action-select.admin__action-multiselect" stepKey="clickDropdown"/>
19-
<selectMultipleOptions filterSelector="{{dropDownSelector}} .admin__action-multiselect-search-wrap>input[data-role='advanced-select-text']" optionSelector="{{dropDownSelector}} .admin__action-multiselect-label>span" stepKey="selectSpecifiedOptions">
20+
<selectMultipleOptions filterSelector="{{dropDownSelector}} .admin__action-multiselect-search-wrap>input" optionSelector="{{dropDownSelector}} .admin__action-multiselect-label>span" stepKey="selectSpecifiedOptions">
2021
<array>[{{options}}]</array>
2122
</selectMultipleOptions>
2223
</actionGroup>

dev/tests/acceptance/tests/functional/Magento/FunctionalTest/Customer/Data/CustomerGroupData.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,10 @@
1313
<data key="tax_class_id">3</data>
1414
<data key="tax_class_name">Retail Customer</data>
1515
</entity>
16+
<!-- TODO: Can be used when https://github.com/magento/magento2-functional-testing-framework/pull/89 is released -->
17+
<entity name="DefaultCustomerGroup" type="customerGroup">
18+
<array key="group_names">
19+
<item>General</item>
20+
</array>
21+
</entity>
1622
</entities>

dev/tests/acceptance/tests/functional/Magento/FunctionalTest/Customer/Section/AdminNewCustomerAccountInformationSection.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,6 @@
1212
<element name="firstName" type="input" selector="input[name='customer[firstname]']"/>
1313
<element name="lastName" type="input" selector="input[name='customer[lastname]']"/>
1414
<element name="email" type="input" selector="input[name='customer[email]']"/>
15+
<element name="group" type="select" selector="[name='customer[group_id]']"/>
1516
</section>
1617
</sections>

dev/tests/acceptance/tests/functional/Magento/FunctionalTest/Customer/Test/AdminCreateCustomerTest.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
<testCaseId value="MAGETWO-72095"/>
1919
<group value="customer"/>
2020
<group value="create"/>
21-
<group value="skip"/>
2221
</annotations>
2322
<after>
2423
<amOnPage url="admin/admin/auth/logout/" stepKey="amOnLogoutPage"/>

0 commit comments

Comments
 (0)