Skip to content

Commit 7e1507b

Browse files
committed
MAGETWO-87013: Cart Price Rules - Category Drill Down problems
1 parent 2fc45a1 commit 7e1507b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

dev/tests/acceptance/tests/functional/Magento/FunctionalTest/SalesRule/Test/PriceRuleCategoryNestingTest.xml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,11 @@
3333
<deleteData createDataKey="subcategory1" stepKey="deleteCategory1" />
3434
<amOnPage url="{{_ENV.MAGENTO_BACKEND_NAME}}/admin/auth/logout/" stepKey="amOnLogoutPage" />
3535
</after>
36-
36+
<!-- Login as admin and open page for creation new Price Rule -->
3737
<actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin1"/>
3838
<amOnPage stepKey="openCatalogPriceRulePage" url="{{PriceRuleNewPage.url}}" />
3939
<waitForPageLoad stepKey="waitCatalogPriceRulePageLoad"/>
40+
<!-- Open Conditions section and select Categories condition -->
4041
<click stepKey="openConditionsSection" selector="{{PriceRuleConditionsSection.conditionsTab}}" />
4142
<click stepKey="createNewRule" selector="{{PriceRuleConditionsSection.createNewRule}}" />
4243
<selectOption stepKey="selectProductAttributes" selector="{{PriceRuleConditionsSection.rulesDropdown}}" userInput="Magento\SalesRule\Model\Rule\Condition\Product\Found" />
@@ -45,12 +46,12 @@
4546
<click stepKey="clickToshowAttributes" selector="{{PriceRuleConditionsSection.addProductAttributesButton}}"/>
4647
<selectOption stepKey="selectCategoryAttribute" selector="{{PriceRuleConditionsSection.productAttributesDropdown}}" userInput="Magento\SalesRule\Model\Rule\Condition\Product|category_ids" />
4748
<waitForAjaxLoad stepKey="ajaxLoad2"/>
48-
49+
<!-- Select categories chooser -->
4950
<waitForElement stepKey="wait2" selector="{{PriceRuleConditionsSection.changeCategoriesButton}}" />
5051
<click stepKey="changeCategories" selector="{{PriceRuleConditionsSection.changeCategoriesButton}}" />
5152
<click stepKey="showCategoriesChooser" selector="{{PriceRuleConditionsSection.categoriesChooser}}" />
5253
<waitForAjaxLoad stepKey="ajaxLoad3"/>
53-
54+
<!-- Click on categories to check that the deepest subcategory is clickable -->
5455
<waitForElement selector="{{PriceRuleConditionsSection.treeRoot}}" stepKey="wait3"/>
5556
<click stepKey="openLatestTreeNode1" selector="{{PriceRuleConditionsSection.lastTreeNode}}" />
5657
<click stepKey="openLatestTreeNode2" selector="{{PriceRuleConditionsSection.lastTreeNode}}" />

0 commit comments

Comments
 (0)