Skip to content

Commit 3b29e37

Browse files
Adding delete customer group - catalog and cart price rules test cases magento#581
1 parent 27554ca commit 3b29e37

File tree

1 file changed

+25
-5
lines changed

1 file changed

+25
-5
lines changed

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

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919

2020
<before>
2121
<createData entity="Simple_US_Customer" stepKey="createCustomer"/>
22-
2322
<actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/>
2423
</before>
2524
<after>
@@ -72,9 +71,30 @@
7271
<!--Go to New Product page, add check custom customer group values-->
7372
<amOnPage url="{{AdminProductCreatePage.url('4', 'simple')}}" stepKey="goToCreateSimpleProductPage"/>
7473
<click selector="{{AdminProductFormSection.advancedPricingLink}}" stepKey="clickOnAdvancedPricingButton"/>
75-
<waitForElement selector="{{AdminProductFormAdvancedPricingSection.customerGroupPriceAddButton}}" stepKey="waitForCustomerGroupPriceAddButton"/>
76-
<click selector="{{AdminProductFormAdvancedPricingSection.customerGroupPriceAddButton}}" stepKey="addCustomerGroupAllGroupsQty1PriceDiscountAnd10percent"/>
77-
<waitForElement selector="{{AdminProductFormAdvancedPricingSection.productTierPriceCustGroupSelect('0')}}" stepKey="waitForSelectCustomerGroupNameAttribute2"/>
78-
<dontSee selector="{{AdminProductFormAdvancedPricingSection.productTierPriceCustGroupSelect('0')}}" userInput="{{CustomerGroupChange.code}}" stepKey="seeProductTierPriceCustomerGroupInput"/>
74+
<waitForElement selector="{{AdminProductFormAdvancedPricingSection.customerGroupPriceAddButton}}"
75+
stepKey="waitForCustomerGroupPriceAddButton"/>
76+
<click selector="{{AdminProductFormAdvancedPricingSection.customerGroupPriceAddButton}}"
77+
stepKey="addCustomerGroupAllGroupsQty1PriceDiscountAnd10percent"/>
78+
<waitForElement selector="{{AdminProductFormAdvancedPricingSection.productTierPriceCustGroupSelect('0')}}"
79+
stepKey="waitForSelectCustomerGroupNameAttribute2"/>
80+
<dontSee selector="{{AdminProductFormAdvancedPricingSection.productTierPriceCustGroupSelect('0')}}"
81+
userInput="{{CustomerGroupChange.code}}"
82+
stepKey="seeProductTierPriceCustomerGroupInput"/>
83+
84+
<!--Go to Catalog price rule page, add check custom customer group values-->
85+
<amOnPage stepKey="goToPriceRulePage" url="{{CatalogRulePage.url}}"/>
86+
<waitForPageLoad stepKey="waitForPriceRulePage"/>
87+
<click stepKey="addNewRule" selector="{{AdminGridMainControls.add}}"/>
88+
<dontSee selector="{{AdminNewCatalogPriceRule.customerGroups}}"
89+
userInput="{{CustomerGroupChange.code}}"
90+
stepKey="dontSeeCatalogPriceRuleCustomerGroups"/>
91+
92+
<!--Go to Cart price rule page, add check custom customer group values-->
93+
<amOnPage url="{{AdminCartPriceRulesPage.url}}" stepKey="amOnCartPriceList"/>
94+
<waitForPageLoad stepKey="waitForRulesPage"/>
95+
<click selector="{{AdminCartPriceRulesSection.addNewRuleButton}}" stepKey="clickAddNewRule"/>
96+
<dontSee selector="{{AdminCartPriceRulesFormSection.customerGroups}}"
97+
userInput="{{CustomerGroupChange.code}}"
98+
stepKey="dontSeeCartPriceRuleCustomerGroups"/>
7999
</test>
80100
</tests>

0 commit comments

Comments
 (0)