-
Notifications
You must be signed in to change notification settings - Fork 9.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'magento-l3/ACP2E-1703' into MAR212023_P…
…R_sarmistha
- Loading branch information
Showing
2 changed files
with
64 additions
and
4 deletions.
There are no files selected for viewing
60 changes: 60 additions & 0 deletions
60
app/code/Magento/UrlRewrite/Test/Mftf/Test/VerifyCategoryTreeOnAddUrlRewritePageTest.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
/** | ||
* Copyright © Magento, Inc. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
--> | ||
|
||
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd"> | ||
<test name="VerifyCategoryTreeOnAddUrlRewritePageTest"> | ||
<annotations> | ||
<stories value="Create category URL rewrite"/> | ||
<title value="Valid category tree on the Add URL Rewrite page"/> | ||
<description value="Validating a category tree while creating category URL rewrites"/> | ||
<severity value="AVERAGE"/> | ||
<testCaseId value="AC-8310"/> | ||
<useCaseId value="ACP2E-1703"/> | ||
<group value="urlRewrite"/> | ||
</annotations> | ||
<before> | ||
<actionGroup ref="AdminLoginActionGroup" stepKey="login"/> | ||
<!-- Create six level nested category --> | ||
<createData entity="_defaultCategory" stepKey="createDefaultCategory"/> | ||
<createData entity="Two_nested_categories" stepKey="createTwoLevelNestedCategories"> | ||
<requiredEntity createDataKey="createDefaultCategory"/> | ||
</createData> | ||
<createData entity="Three_nested_categories" stepKey="createThreeLevelNestedCategories"> | ||
<requiredEntity createDataKey="createTwoLevelNestedCategories"/> | ||
</createData> | ||
<createData entity="Four_nested_categories" stepKey="createFourLevelNestedCategories"> | ||
<requiredEntity createDataKey="createThreeLevelNestedCategories"/> | ||
</createData> | ||
<createData entity="Five_nested_categories" stepKey="createFiveLevelNestedCategories"> | ||
<requiredEntity createDataKey="createFourLevelNestedCategories"/> | ||
</createData> | ||
<createData entity="Six_nested_categories" stepKey="createSixLevelNestedCategories"> | ||
<requiredEntity createDataKey="createFiveLevelNestedCategories"/> | ||
</createData> | ||
</before> | ||
<after> | ||
<deleteData createDataKey="createSixLevelNestedCategories" stepKey="deleteSixNestedCategories"/> | ||
<deleteData createDataKey="createFiveLevelNestedCategories" stepKey="deleteFiveNestedCategories"/> | ||
<deleteData createDataKey="createFourLevelNestedCategories" stepKey="deleteFourNestedCategories"/> | ||
<deleteData createDataKey="createThreeLevelNestedCategories" stepKey="deleteThreeNestedCategories"/> | ||
<deleteData createDataKey="createTwoLevelNestedCategories" stepKey="deleteTwoLevelNestedCategory"/> | ||
<deleteData createDataKey="createDefaultCategory" stepKey="deleteDefaultCategory"/> | ||
<actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/> | ||
</after> | ||
<actionGroup ref="AdminGoToAddNewUrlRewritePageActionGroup" stepKey="openUrlRewriteEditPage"/> | ||
<actionGroup ref="AdminCreateNewUrlRewriteForCmsPageActionGroup" stepKey="selectForCategoryType"> | ||
<argument name="customUrlRewriteValue" value="For Category"/> | ||
</actionGroup> | ||
<executeJS stepKey="getCategoryTreeLevelsCount" function="return document.querySelectorAll("li[id='$createDefaultCategory.id$'] ul").length;"/> | ||
<assertEquals message="Asserting category levels count" stepKey="assertCategoryTreeLevelsCount"> | ||
<expectedResult type="string">5</expectedResult> | ||
<actualResult type="string">{$getCategoryTreeLevelsCount}</actualResult> | ||
</assertEquals> | ||
</test> | ||
</tests> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters