-
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.
ENGCOM-6938: Activated "Pending Reviews" menu item when merchant open…
…s 'Pending Reviews' section #26230
- Loading branch information
Showing
4 changed files
with
64 additions
and
0 deletions.
There are no files selected for viewing
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
21 changes: 21 additions & 0 deletions
21
...ode/Magento/Review/Test/Mftf/ActionGroup/AdminAssertClassElementRelativeIdActionGroup.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,21 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
/** | ||
* Copyright © Magento, Inc. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
--> | ||
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd"> | ||
<actionGroup name="AdminAssertClassElementRelativeIdActionGroup"> | ||
<arguments> | ||
<argument name="elementId" type="string" defaultValue="{{AdminMenuSection.marketing}}"/> | ||
<argument name="expectClass" type="string" defaultValue="{{AdminMenuUserContentPendingReviews.activeClass}}" /> | ||
</arguments> | ||
|
||
<grabAttributeFrom selector="{{elementId}}" userInput="class" stepKey="grabClass"/> | ||
<assertContains stepKey="assertClass"> | ||
<actualResult type="string">{$grabClass}</actualResult> | ||
<expectedResult type="string">{{expectClass}}</expectedResult> | ||
</assertContains> | ||
</actionGroup> | ||
</actionGroups> |
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
36 changes: 36 additions & 0 deletions
36
...code/Magento/Review/Test/Mftf/Test/AdminMarketingPendingReviewsNavigateMenuActiveTest.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,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="AdminMarketingPendingReviewsNavigateMenuActiveTest"> | ||
<annotations> | ||
<features value="Pending Reviews"/> | ||
<stories value="Menu Navigation"/> | ||
<title value="Admin marketing pending reviews navigate menu"/> | ||
<description value="Admin able see navigate head menu Marketing is active, when open page Marketing > Pending Reviews"/> | ||
<group value="menu"/> | ||
</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> | ||
<actionGroup ref="AdminAssertClassElementRelativeIdActionGroup" stepKey="assertClass"> | ||
<argument name="elementId" value="{{AdminMenuSection.marketing}}"/> | ||
<argument name="expectClass" value="{{AdminMenuUserContentPendingReviews.dataActiveClass}}"/> | ||
</actionGroup> | ||
</test> | ||
</tests> |