Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Activated "Pending Reviews" menu item when merchant opens 'Pending Reviews' section #26230

Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ public function execute()
}
/** @var \Magento\Backend\Model\View\Result\Page $resultPage */
$resultPage = $this->resultFactory->create(ResultFactory::TYPE_PAGE);
$resultPage->setActiveMenu('Magento_Review::catalog_reviews_ratings_pending');
$resultPage->getConfig()->getTitle()->prepend(__('Customer Reviews'));
$resultPage->getConfig()->getTitle()->prepend(__('Pending Reviews'));
$this->coreRegistry->register('usePendingFilter', true);
Expand Down
5 changes: 5 additions & 0 deletions app/code/Magento/Review/Test/Mftf/Data/AdminMenuData.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@
<data key="title">Reviews</data>
<data key="dataUiId">magento-review-catalog-reviews-ratings-reviews-all</data>
</entity>
<entity name="AdminMenuUserContentPendingReviews">
<data key="pageTitle">Pending Reviews</data>
<data key="title">Pending Reviews</data>
<data key="dataUiId">magento-review-catalog-reviews-ratings-pending</data>
</entity>
<entity name="AdminMenuReportsReviewsByCustomers">
<data key="pageTitle">Customer Reviews Report</data>
<data key="title">By Customers</data>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<?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="AdminMarketingPendingReviewsNavigateMenuTest">
<annotations>
<features value="Pending Reviews"/>
<stories value="Menu Navigation"/>
<title value="Admin marketing pending reviews navigate menu test"/>
<description value="Admin should be able to navigate to Marketing > Pending Reviews"/>
<severity value="CRITICAL"/>
<testCaseId value="MC-14200"/>
dmytro-ch marked this conversation as resolved.
Show resolved Hide resolved
<group value="menu"/>
<group value="mtf_migrated"/>
</annotations>
<before>
<actionGroup ref="LoginAsAdmin" stepKey="LoginAsAdmin"/>
</before>
<after>
<actionGroup ref="logout" stepKey="logout"/>
</after>
<actionGroup ref="AdminNavigateMenuActionGroup" stepKey="navigateToReportsViewsPage">
<argument name="menuUiId" value="{{AdminMenuMarketing.dataUiId}}"/>
<argument name="submenuUiId" value="{{AdminMenuUserContentPendingReviews.dataUiId}}"/>
</actionGroup>
<actionGroup ref="AdminAssertPageTitleActionGroup" stepKey="seePageTitle">
<argument name="title" value="{{AdminMenuUserContentPendingReviews.pageTitle}}"/>
</actionGroup>
</test>
</tests>