![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/old/vendor/magento/module-sales-rule/Test/Mftf/Test/ |
<!-- /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ --> <tests xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <test name="PriceRuleCategoryNestingTest"> <annotations> <features value="SalesRule"/> <stories value="Create categories"/> <title value="Category nesting level must be the same as were created in categories."/> <description value="Category nesting level must be the same as were created in categories."/> <severity value="CRITICAL"/> <testCaseId value="MAGETWO-91101"/> <group value="SalesRule"/> </annotations> <before> <createData entity="_defaultCategory" stepKey="subcategory1"/> <createData entity="SubCategoryWithParent" stepKey="subcategory2"> <requiredEntity createDataKey="subcategory1"/> </createData> <createData entity="SubCategoryWithParent" stepKey="subcategory3"> <requiredEntity createDataKey="subcategory2"/> </createData> <createData entity="SubCategoryWithParent" stepKey="subcategory4"> <requiredEntity createDataKey="subcategory3"/> </createData> <createData entity="SubCategoryWithParent" stepKey="subcategory5"> <requiredEntity createDataKey="subcategory4"/> </createData> </before> <after> <deleteData createDataKey="subcategory1" stepKey="deleteCategory1"/> <actionGroup ref="AdminLogoutActionGroup" stepKey="adminLogout"/> </after> <!-- Login as admin and open page for creation new Price Rule --> <actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin1"/> <amOnPage url="{{PriceRuleNewPage.url}}" stepKey="openCatalogPriceRulePage"/> <waitForPageLoad stepKey="waitCatalogPriceRulePageLoad"/> <!-- Open Conditions section and select Categories condition --> <click selector="{{PriceRuleConditionsSection.conditionsTab}}" stepKey="openConditionsSection"/> <scrollTo selector="{{PriceRuleConditionsSection.conditionsTab}}" stepKey="scrollToConditionsTab"/> <click selector="{{PriceRuleConditionsSection.createNewRule}}" stepKey="createNewRule"/> <selectOption selector="{{PriceRuleConditionsSection.rulesDropdown}}" userInput="Magento\SalesRule\Model\Rule\Condition\Product\Found" stepKey="selectProductAttributes"/> <waitForAjaxLoad stepKey="ajaxLoad1"/> <waitForElement selector="{{PriceRuleConditionsSection.addProductAttributesButton}}" stepKey="wait1"/> <scrollTo selector="{{PriceRuleConditionsSection.addProductAttributesButton}}" stepKey="scrollToAddProductAttributeButton"/> <click selector="{{PriceRuleConditionsSection.addProductAttributesButton}}" stepKey="clickToshowAttributes"/> <selectOption selector="{{PriceRuleConditionsSection.productAttributesDropdown}}" userInput="Magento\SalesRule\Model\Rule\Condition\Product|category_ids" stepKey="selectCategoryAttribute"/> <waitForAjaxLoad stepKey="ajaxLoad2"/> <!-- Select categories chooser --> <waitForElement selector="{{PriceRuleConditionsSection.changeCategoriesButton}}" stepKey="wait2"/> <click selector="{{PriceRuleConditionsSection.changeCategoriesButton}}" stepKey="changeCategories"/> <click selector="{{PriceRuleConditionsSection.categoriesChooser}}" stepKey="showCategoriesChooser"/> <waitForAjaxLoad stepKey="ajaxLoad3"/> <!-- Click on categories to check that the deepest subcategory is clickable --> <waitForElement selector="{{PriceRuleConditionsSection.treeRoot}}" stepKey="wait3"/> <click selector="{{PriceRuleConditionsSection.lastTreeNode}}" stepKey="openLatestTreeNode1"/> <click selector="{{PriceRuleConditionsSection.lastTreeNode}}" stepKey="openLatestTreeNode2"/> <click selector="{{PriceRuleConditionsSection.lastTreeNode}}" stepKey="openLatestTreeNode3"/> <waitForAjaxLoad stepKey="ajaxLoad4"/> <waitForElement selector="{{PriceRuleConditionsSection.subcategory4level}}" stepKey="wait4"/> <click selector="{{PriceRuleConditionsSection.subcategory4level}}" stepKey="openLatestTreeNode4"/> <scrollToTopOfPage stepKey="scrollToTop"/> <dontSee stepKey="dontSeeErrorMessage" userInput="A technical problem with the server created an error. Try again to continue what you were doing. If the problem persists, try again later."/> </test> </tests>