Skip to content

Commit 5ede38a

Browse files
committed
Add assertion in urlrewrite grid
1 parent 3b50465 commit 5ede38a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

app/code/Magento/Catalog/Test/Mftf/Test/AdminCreateCategoryWithAnchorFieldTest.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,14 @@
6464
<waitForPageLoad stepKey="waitForPageTitleToBeSaved"/>
6565
<!--Verify the Category Title-->
6666
<see selector="{{AdminCategoryContentSection.categoryPageTitle}}" userInput="{{_defaultCategory.name}}" stepKey="seePageTitle" />
67+
<grabFromCurrentUrl stepKey="categoryId" regex="#\/([0-9]*)?\/$#"/>
68+
<!-- Assert Redirect path, Target Path and Redirect type in grid -->
69+
<actionGroup ref="AdminSearchByRequestPathActionGroup" stepKey="searchByRequestPath">
70+
<argument name="redirectPath" value="{{_defaultCategory.name}}.html" />
71+
<argument name="redirectType" value="Permanent (301)" />
72+
<argument name="targetPath" value="catalog/category/view/id/{$categoryId}"/>
73+
</actionGroup>
74+
6775
<!--Clear cache and reindex-->
6876
<magentoCLI command="indexer:reindex" stepKey="reindex"/>
6977
<magentoCLI command="cache:flush" stepKey="flushCache"/>

0 commit comments

Comments
 (0)