|
33 | 33 | <deleteData createDataKey="subcategory1" stepKey="deleteCategory1" />
|
34 | 34 | <amOnPage url="{{_ENV.MAGENTO_BACKEND_NAME}}/admin/auth/logout/" stepKey="amOnLogoutPage" />
|
35 | 35 | </after>
|
36 |
| - |
| 36 | + <!-- Login as admin and open page for creation new Price Rule --> |
37 | 37 | <actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin1"/>
|
38 | 38 | <amOnPage stepKey="openCatalogPriceRulePage" url="{{PriceRuleNewPage.url}}" />
|
39 | 39 | <waitForPageLoad stepKey="waitCatalogPriceRulePageLoad"/>
|
| 40 | + <!-- Open Conditions section and select Categories condition --> |
40 | 41 | <click stepKey="openConditionsSection" selector="{{PriceRuleConditionsSection.conditionsTab}}" />
|
41 | 42 | <click stepKey="createNewRule" selector="{{PriceRuleConditionsSection.createNewRule}}" />
|
42 | 43 | <selectOption stepKey="selectProductAttributes" selector="{{PriceRuleConditionsSection.rulesDropdown}}" userInput="Magento\SalesRule\Model\Rule\Condition\Product\Found" />
|
|
45 | 46 | <click stepKey="clickToshowAttributes" selector="{{PriceRuleConditionsSection.addProductAttributesButton}}"/>
|
46 | 47 | <selectOption stepKey="selectCategoryAttribute" selector="{{PriceRuleConditionsSection.productAttributesDropdown}}" userInput="Magento\SalesRule\Model\Rule\Condition\Product|category_ids" />
|
47 | 48 | <waitForAjaxLoad stepKey="ajaxLoad2"/>
|
48 |
| - |
| 49 | + <!-- Select categories chooser --> |
49 | 50 | <waitForElement stepKey="wait2" selector="{{PriceRuleConditionsSection.changeCategoriesButton}}" />
|
50 | 51 | <click stepKey="changeCategories" selector="{{PriceRuleConditionsSection.changeCategoriesButton}}" />
|
51 | 52 | <click stepKey="showCategoriesChooser" selector="{{PriceRuleConditionsSection.categoriesChooser}}" />
|
52 | 53 | <waitForAjaxLoad stepKey="ajaxLoad3"/>
|
53 |
| - |
| 54 | + <!-- Click on categories to check that the deepest subcategory is clickable --> |
54 | 55 | <waitForElement selector="{{PriceRuleConditionsSection.treeRoot}}" stepKey="wait3"/>
|
55 | 56 | <click stepKey="openLatestTreeNode1" selector="{{PriceRuleConditionsSection.lastTreeNode}}" />
|
56 | 57 | <click stepKey="openLatestTreeNode2" selector="{{PriceRuleConditionsSection.lastTreeNode}}" />
|
|
0 commit comments