-
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-7292: [Catalog] Unable to open the product from sidebar's Comp…
…are Products block #27451
- Loading branch information
Showing
4 changed files
with
95 additions
and
2 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
...talog/Test/Mftf/ActionGroup/StorefrontClickOnProductFromSidebarCompareListActionGroup.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,24 @@ | ||
<?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="StorefrontClickOnProductFromSidebarCompareListActionGroup"> | ||
<annotations> | ||
<description>Click on the product item from the sidebar comparing list.</description> | ||
</annotations> | ||
|
||
<arguments> | ||
<argument name="product" type="entity"/> | ||
</arguments> | ||
|
||
<waitForElementVisible selector="{{StorefrontComparisonSidebarSection.ProductTitleByName((product.name)}}" stepKey="waitForAddedCompareProduct"/> | ||
<click selector="{{StorefrontComparisonSidebarSection.ProductTitleByName((product.name))}}" stepKey="clickOnProductLink"/> | ||
<waitForPageLoad stepKey="waitForProductPageLoad"/> | ||
</actionGroup> | ||
</actionGroups> |
43 changes: 43 additions & 0 deletions
43
app/code/Magento/Catalog/Test/Mftf/Test/StorefrontRemoveProductFromCompareSidebarTest.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,43 @@ | ||
<?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="StorefrontRemoveProductFromCompareSidebarTest"> | ||
<annotations> | ||
<title value="Verify that the product isn't removed on clicking the product name"/> | ||
<stories value="Verify that the product isn't removed on clicking the product name"/> | ||
<description value="Verify that the product isn't removed on clicking the product name, but it's redirected to product page"/> | ||
<features value="Catalog"/> | ||
<severity value="MINOR"/> | ||
<group value="Catalog"/> | ||
<testCaseId value="MC-35068"/> | ||
</annotations> | ||
<before> | ||
<createData entity="_defaultCategory" stepKey="defaultCategory"/> | ||
<createData entity="SimpleProduct" stepKey="simpleProduct"> | ||
<requiredEntity createDataKey="defaultCategory"/> | ||
</createData> | ||
</before> | ||
<after> | ||
<deleteData createDataKey="simpleProduct" stepKey="deleteProduct"/> | ||
<deleteData createDataKey="defaultCategory" stepKey="deleteCategory"/> | ||
</after> | ||
<actionGroup ref="StorefrontNavigateCategoryPageActionGroup" stepKey="openCategoryPage"> | ||
<argument name="category" value="$$defaultCategory$$"/> | ||
</actionGroup> | ||
<actionGroup ref="StorefrontAddCategoryProductToCompareActionGroup" stepKey="addProductToCompareList"> | ||
<argument name="productVar" value="$$simpleProduct$$"/> | ||
</actionGroup> | ||
<actionGroup ref="StorefrontClickOnProductFromSidebarCompareListActionGroup" stepKey="clickOnComparingProductLink"> | ||
<argument name="product" value="$$simpleProduct$$"/> | ||
</actionGroup> | ||
<actionGroup ref="StorefrontCheckProductUrlActionGroup" stepKey="checkProductPageUrl"> | ||
<argument name="productUrl" value="$$simpleProduct.custom_attributes[url_key]$$"/> | ||
</actionGroup> | ||
</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
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