-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5544 from magento-tsg-csl3/2.4-develop-pr21
[TSG-CSL3] For 2.4 (pr21)
- Loading branch information
Showing
50 changed files
with
1,092 additions
and
319 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
...t/Mftf/ActionGroup/StorefrontAssertNotExistProductInRecentlyComparedWidgetActionGroup.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"> | ||
<!-- Check the product not exist in recently compared widget --> | ||
<actionGroup name="StorefrontAssertNotExistProductInRecentlyComparedWidgetActionGroup"> | ||
<annotations> | ||
<description>Validate that the provided Product does not appear in the Recently Compared Products widget.</description> | ||
</annotations> | ||
<arguments> | ||
<argument name="product"/> | ||
</arguments> | ||
|
||
<waitForElementVisible selector="{{StorefrontWidgetsSection.widgetRecentlyComparedProductsGrid}}" stepKey="waitLoadingRecentlyComparedProductsGrid"/> | ||
<dontSee selector="{{StorefrontWidgetsSection.widgetRecentlyComparedProductsGrid}}" userInput="{{product.name}}" stepKey="dontSeeProductInRecentlyComparedWidget"/> | ||
</actionGroup> | ||
</actionGroups> |
106 changes: 106 additions & 0 deletions
106
app/code/Magento/Catalog/Test/Mftf/Test/StoreFrontRecentlyComparedAtWebsiteLevelTest.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,106 @@ | ||
<?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="StoreFrontRecentlyComparedAtWebsiteLevelTest"> | ||
<annotations> | ||
<stories value="Recently Compared Product"/> | ||
<title value="Recently Compared Product at website level"/> | ||
<description value="Recently Compared Products widget appears on a page immediately after adding product to compare"/> | ||
<useCaseId value="MC-32763"/> | ||
<testCaseId value="MC-33099"/> | ||
<severity value="MAJOR"/> | ||
<group value="catalog"/> | ||
<group value="widget"/> | ||
</annotations> | ||
<before> | ||
<!--Create Simple Products and Category --> | ||
<createData entity="SimpleSubCategory" stepKey="createCategory"/> | ||
<createData entity="SimpleProduct" stepKey="createSimpleProductToCompareFirst"> | ||
<requiredEntity createDataKey="createCategory"/> | ||
</createData> | ||
<createData entity="SimpleProduct" stepKey="createSimpleProductToCompareSecond"> | ||
<requiredEntity createDataKey="createCategory"/> | ||
</createData> | ||
<createData entity="SimpleProduct" stepKey="createSimpleProductNotVisibleFirst"> | ||
<requiredEntity createDataKey="createCategory"/> | ||
</createData> | ||
<createData entity="SimpleProduct" stepKey="createSimpleProductNotVisibleSecond"> | ||
<requiredEntity createDataKey="createCategory"/> | ||
</createData> | ||
<createData entity="Simple_US_Customer" stepKey="createCustomer"/> | ||
<!-- Login as admin --> | ||
<actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/> | ||
<!-- Create product widget --> | ||
<actionGroup ref="AdminCreateRecentlyProductsWidgetActionGroup" stepKey="createRecentlyComparedProductsWidget"> | ||
<argument name="widget" value="RecentlyComparedProductsWidget"/> | ||
</actionGroup> | ||
<!-- Set Stores > Configurations > Catalog > Recently Viewed/Compared Products > Show for Current = Website --> | ||
<magentoCLI command="config:set {{RecentlyViewedProductScopeWebsite.path}} {{RecentlyViewedProductScopeWebsite.value}}" stepKey="RecentlyViewedProductScopeWebsiteGroup"/> | ||
</before> | ||
<after> | ||
<!-- Customer Logout --> | ||
<actionGroup ref="StorefrontCustomerLogoutActionGroup" stepKey="logoutFromCustomer"/> | ||
<!-- Delete product widget --> | ||
<actionGroup ref="AdminDeleteWidgetActionGroup" stepKey="deleteRecentlyComparedProductsWidget"> | ||
<argument name="widget" value="RecentlyComparedProductsWidget"/> | ||
</actionGroup> | ||
<!-- Logout Admin --> | ||
<actionGroup ref="logout" stepKey="logout"/> | ||
<!-- Reset Stores > Configurations > Catalog > Recently Viewed/Compared Products > Show for Current = Website--> | ||
<magentoCLI command="config:set {{RecentlyViewedProductScopeWebsite.path}} {{RecentlyViewedProductScopeWebsite.value}}" stepKey="RecentlyViewedProductScopeWebsite"/> | ||
<!-- Delete Products and Category --> | ||
<deleteData createDataKey="createSimpleProductToCompareFirst" stepKey="deleteSimpleProductToCompareFirst"/> | ||
<deleteData createDataKey="createSimpleProductToCompareSecond" stepKey="deleteSimpleProductToCompareSecond"/> | ||
<deleteData createDataKey="createSimpleProductNotVisibleFirst" stepKey="deleteSimpleProductNotVisibleFirst"/> | ||
<deleteData createDataKey="createSimpleProductNotVisibleSecond" stepKey="deleteSimpleProductNotVisibleSecond"/> | ||
<deleteData createDataKey="createCategory" stepKey="deleteCategory"/> | ||
<deleteData createDataKey="createCustomer" stepKey="deleteCustomer"/> | ||
</after> | ||
<!--Login to storefront from customer--> | ||
<actionGroup ref="LoginToStorefrontActionGroup" stepKey="loginCustomer"> | ||
<argument name="Customer" value="$$createCustomer$$"/> | ||
</actionGroup> | ||
<see userInput="Welcome, $$createCustomer.firstname$$ $$createCustomer.lastname$$!" selector="{{StorefrontPanelHeaderSection.WelcomeMessage}}" stepKey="checkWelcomeMessage"/> | ||
<amOnPage url="{{StorefrontCategoryPage.url($$createCategory.custom_attributes[url_key]$$)}}" stepKey="openCategoryPageAfterAddedProductToCart"/> | ||
<!--Add to compare Simple Product and Simple Product 2--> | ||
<actionGroup ref="StorefrontAddCategoryProductToCompareActionGroup" stepKey="addSimpleProduct1ToCompare" > | ||
<argument name="productVar" value="$$createSimpleProductToCompareFirst$$"/> | ||
</actionGroup> | ||
<actionGroup ref="StorefrontAddCategoryProductToCompareActionGroup" stepKey="addSimpleProduct2ToCompare" > | ||
<argument name="productVar" value="$$createSimpleProductToCompareSecond$$"/> | ||
</actionGroup> | ||
<!--The Compare Products widget displays Simple Product 1 and Simple Product 2--> | ||
<actionGroup ref="StorefrontCheckCompareSidebarProductActionGroup" stepKey="checkSimpleProduct1InCompareSidebar"> | ||
<argument name="productVar" value="$$createSimpleProductToCompareFirst$$"/> | ||
</actionGroup> | ||
<actionGroup ref="StorefrontCheckCompareSidebarProductActionGroup" stepKey="checkSimpleProduct2InCompareSidebar"> | ||
<argument name="productVar" value="$$createSimpleProductToCompareSecond$$"/> | ||
</actionGroup> | ||
|
||
<!--Click Clear all in the Compare Products widget--> | ||
<actionGroup ref="StorefrontClearCompareActionGroup" stepKey="clearCompareList"/> | ||
<!--The Recently Compared widget displays Simple Product 1 and Simple Product 2--> | ||
<amOnPage url="{{StorefrontCategoryPage.url($$createCategory.custom_attributes[url_key]$$)}}" stepKey="openCategoryPageToCheckProductsInRecentlyComparedSidebar"/> | ||
<actionGroup ref="StorefrontAssertProductInRecentlyComparedWidgetActionGroup" stepKey="checkSimpleProduct1ExistInRecentlyComparedWidget"> | ||
<argument name="product" value="$$createSimpleProductToCompareFirst$$"/> | ||
</actionGroup> | ||
<actionGroup ref="StorefrontAssertProductInRecentlyComparedWidgetActionGroup" stepKey="checkSimpleProduct2ExistInRecentlyComparedWidget"> | ||
<argument name="product" value="$$createSimpleProductToCompareSecond$$"/> | ||
</actionGroup> | ||
<!--The Recently Compared widget not displays Simple Product 3 and Simple Product 4--> | ||
<actionGroup ref="StorefrontAssertNotExistProductInRecentlyComparedWidgetActionGroup" stepKey="checkSimpleProduct3NotExistInRecentlyComparedWidget"> | ||
<argument name="product" value="$$createSimpleProductNotVisibleFirst$$"/> | ||
</actionGroup> | ||
<actionGroup ref="StorefrontAssertNotExistProductInRecentlyComparedWidgetActionGroup" stepKey="checkSimpleProduct4NotExistInRecentlyComparedWidget"> | ||
<argument name="product" value="$$createSimpleProductNotVisibleSecond$$"/> | ||
</actionGroup> | ||
<amOnPage url="customer/account/logout/" stepKey="logoutCustomer"/> | ||
<waitForPageLoad time="30" stepKey="waitForPageLoad2"/> | ||
</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
71 changes: 0 additions & 71 deletions
71
...e/Magento/CatalogGraphQl/Model/Resolver/Products/DataProvider/Image/Placeholder/Theme.php
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.