Skip to content

Commit a0bf34d

Browse files
committed
MC-5301: Create retail customer group
1 parent f7dbf7a commit a0bf34d

8 files changed

+13
-16
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
<argument name="customerGroupName" type="string"/>
1313
</arguments>
1414
<amOnPage url="{{AdminNewCatalogRulePage.url}}" stepKey="amOnCatalogPriceRuleCreatePage"/>
15+
<waitForElementVisible selector="{{AdminNewCatalogPriceRule.customerGroups}}" stepKey="waitForElementVisible"/>
1516
<see selector="{{AdminNewCatalogPriceRule.customerGroups}}" userInput="{{customerGroupName}}" stepKey="assertCustomerGroupPresentOnCatalogPriceRuleForm"/>
1617
</actionGroup>
1718
</actionGroups>

app/code/Magento/CatalogRule/Test/Mftf/ActionGroup/AdminOpenNewCatalogPriceRuleFormPageActionGroup.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
99
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
1010
<actionGroup name="AdminOpenNewCatalogPriceRuleFormPageActionGroup">
11-
<amOnPage url="{{CatalogRuleNewPage.url}}" stepKey="openNewCatalogPriceRulePage" />
11+
<amOnPage url="{{AdminNewCatalogRulePage.url}}" stepKey="openNewCatalogPriceRulePage" />
1212
<waitForPageLoad stepKey="waitForPageLoad" />
1313
</actionGroup>
1414
</actionGroups>

app/code/Magento/CatalogRule/Test/Mftf/Page/CatalogRuleNewPage.xml

Lines changed: 0 additions & 14 deletions
This file was deleted.

app/code/Magento/Customer/Test/Mftf/ActionGroup/AdminAssertCustomerGroupOnCustomerFormActionGroup.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
<argument name="customerGroupName" type="string"/>
1313
</arguments>
1414
<amOnPage url="{{AdminNewCustomerPage.url}}" stepKey="amOnCustomerCreatePage"/>
15+
<waitForElementVisible selector="{{AdminCustomerAccountInformationSection.group}}" stepKey="waitForElementVisible"/>
1516
<see selector="{{AdminCustomerAccountInformationSection.group}}" userInput="{{customerGroupName}}" stepKey="assertCustomerGroupPresent"/>
1617
</actionGroup>
1718
</actionGroups>

app/code/Magento/Customer/Test/Mftf/ActionGroup/AdminAssertCustomerGroupOnProductFormActionGroup.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212
<argument name="customerGroupName" type="string"/>
1313
</arguments>
1414
<amOnPage url="{{AdminProductCreatePage.url(AddToDefaultSet.attributeSetId, 'simple')}}" stepKey="amOnProductCreatePage"/>
15+
<waitForElementVisible selector="{{AdminProductFormSection.advancedPricingLink}}" stepKey="waitForAdvancedPricingLinkVisible"/>
1516
<click selector="{{AdminProductFormSection.advancedPricingLink}}" stepKey="clickOnAdvancedPricingButton"/>
17+
<waitForElementVisible selector="{{AdminProductFormAdvancedPricingSection.customerGroupPriceAddButton}}" stepKey="waitForAddButtonVisible"/>
1618
<click selector="{{AdminProductFormAdvancedPricingSection.customerGroupPriceAddButton}}" stepKey="clickAddButton"/>
1719
<see selector="{{AdminProductFormAdvancedPricingSection.productTierPriceCustGroupSelect('0')}}" userInput="{{customerGroupName}}" stepKey="assertCustomerGroupPresent"/>
1820
</actionGroup>

app/code/Magento/Customer/Test/Mftf/ActionGroup/AdminAssertErrorMessageCustomerGroupAlreadyExistsActionGroup.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
1010
<actionGroup name="AdminAssertErrorMessageCustomerGroupAlreadyExists" extends="AdminCreateCustomerGroupActionGroup">
1111
<remove keyForRemoval="seeCustomerGroupSaveMessage"/>
12+
<waitForElementVisible selector="{{AdminMessagesSection.errorMessage}}" stepKey="waitForElementVisible"/>
1213
<see selector="{{AdminMessagesSection.errorMessage}}" userInput="Customer Group already exists." stepKey="seeErrorMessage"/>
1314
</actionGroup>
1415
</actionGroups>

app/code/Magento/Customer/Test/Mftf/Test/AdminCreateTaxClassCustomerGroupTest.xml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@
2828
<actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/>
2929
</before>
3030
<after>
31+
<deleteData createDataKey="createCustomerTaxClass" after="deleteCustomerGroup" stepKey="deleteCustomerTaxClass"/>
3132
<actionGroup ref="AdminDeleteCustomerGroupActionGroup" stepKey="deleteCustomerGroup">
3233
<argument name="customerGroupName" value="{{CustomCustomerGroup.code}}"/>
3334
</actionGroup>
3435
<actionGroup ref="clearFiltersAdminDataGrid" stepKey="clearFilters"/>
35-
<deleteData createDataKey="createCustomerTaxClass" stepKey="deleteCustomerTaxClass"/>
3636
<actionGroup ref="logout" stepKey="logout"/>
3737
</after>
3838
<!-- Steps: 1. Log in to backend as admin user.
@@ -49,5 +49,10 @@
4949
<actionGroup ref="AdminAssertCustomerGroupPresentInGrid" stepKey="assertCustomerGroupDisplayedInGrid">
5050
<argument name="customerGroupName" value="{{CustomCustomerGroup.code}}"/>
5151
</actionGroup>
52+
<!-- 6. Go to Customers -> All Customers -> click "Add New Customer" button -->
53+
<!-- Assert created Customer Group displayed On Customer Form -->
54+
<actionGroup ref="AdminAssertCustomerGroupOnCustomerForm" stepKey="assertCustomerGroupDisplayedOnCustomerForm">
55+
<argument name="customerGroupName" value="{{CustomCustomerGroup.code}}"/>
56+
</actionGroup>
5257
</test>
5358
</tests>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
<argument name="customerGroupName" type="string"/>
1313
</arguments>
1414
<amOnPage url="{{PriceRuleNewPage.url}}" stepKey="amOnCartPriceRuleCreateCreatePage"/>
15+
<waitForElementVisible selector="{{AdminCartPriceRulesFormSection.customerGroups}}" stepKey="waitForElementVisible"/>
1516
<see selector="{{AdminCartPriceRulesFormSection.customerGroups}}" userInput="{{customerGroupName}}" stepKey="assertCustomerGroupPresentOnCartPriceRuleForm"/>
1617
</actionGroup>
1718
</actionGroups>

0 commit comments

Comments
 (0)