-
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.
[EngCom] Public Pull Requests - 2.3-develop
- merged latest code from mainline branch
- 2.4.8-beta2
- 2.4.8-beta1
- 2.4.7
- 2.4.7-p4
- 2.4.7-p3
- 2.4.7-p2
- 2.4.7-p1
- 2.4.7-beta3
- 2.4.7-beta2
- 2.4.7-beta1
- 2.4.6
- 2.4.6-p9
- 2.4.6-p8
- 2.4.6-p7
- 2.4.6-p6
- 2.4.6-p5
- 2.4.6-p4
- 2.4.6-p3
- 2.4.6-p2
- 2.4.6-p1
- 2.4.5
- 2.4.5-p11
- 2.4.5-p10
- 2.4.5-p9
- 2.4.5-p8
- 2.4.5-p7
- 2.4.5-p6
- 2.4.5-p5
- 2.4.5-p4
- 2.4.5-p3
- 2.4.5-p2
- 2.4.5-p1
- 2.4.4
- 2.4.4-p12
- 2.4.4-p11
- 2.4.4-p10
- 2.4.4-p9
- 2.4.4-p8
- 2.4.4-p7
- 2.4.4-p6
- 2.4.4-p5
- 2.4.4-p4
- 2.4.4-p3
- 2.4.4-p2
- 2.4.4-p1
- 2.4.3
- 2.4.3-p3
- 2.4.3-p2
- 2.4.3-p1
- 2.4.2
- 2.4.2-p2
- 2.4.2-p1
- 2.4.1
- 2.4.1-p1
- 2.4.0
- 2.4.0-p1
- 2.3.7
- 2.3.7-p4
- 2.3.7-p3
- 2.3.7-p2
- 2.3.7-p1
- 2.3.6
- 2.3.6-p1
- 2.3.5
- 2.3.5-p2
- 2.3.5-p1
- 2.3.4
- 2.3.4-p2
- 2.3.3
- 2.3.3-p1
- 2.3.2
- 2.3.2-p2
- 2.3.1
- 2.3.0
Showing
127 changed files
with
3,980 additions
and
268 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
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
35 changes: 35 additions & 0 deletions
35
...s/functional/Magento/FunctionalTest/Catalog/ActionGroup/StorefrontCategoryActionGroup.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,35 @@ | ||
<?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="../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Test/etc/actionGroupSchema.xsd"> | ||
<!-- Check the category page --> | ||
<actionGroup name="StorefrontCheckCategoryActionGroup"> | ||
<arguments> | ||
<argument name="category"/> | ||
<argument name="productCount"/> | ||
</arguments> | ||
<seeInCurrentUrl url="/{{category.custom_attributes[url_key]}}.html" stepKey="checkUrl"/> | ||
<seeInTitle userInput="{{category.name}}" stepKey="assertCategoryNameInTitle"/> | ||
<see userInput="{{category.name}}" selector="{{StorefrontCategoryMainSection.CategoryTitle}}" stepKey="assertCategoryName"/> | ||
<see userInput="{{productCount}}" selector="{{StorefrontCategoryMainSection.productCount}} span" stepKey="assertProductCount"/> | ||
</actionGroup> | ||
|
||
<!-- Check simple product on the category page --> | ||
<actionGroup name="StorefrontCheckCategorySimpleProduct"> | ||
<arguments> | ||
<argument name="product"/> | ||
</arguments> | ||
<seeElement selector="{{StorefrontCategoryProductSection.ProductTitleByName(product.name)}}" stepKey="assertProductName"/> | ||
<see userInput="${{product.price}}.00" selector="{{StorefrontCategoryProductSection.ProductPriceByName(product.name)}}" stepKey="AssertProductPrice"/> | ||
<!-- @TODO: MAGETWO-80272 Move to Magento_Checkout --> | ||
<moveMouseOver selector="{{StorefrontCategoryProductSection.ProductInfoByName(product.name)}}" stepKey="moveMouseOverProduct" /> | ||
<!-- @TODO: MAGETWO-80272 Move to Magento_Checkout --> | ||
<seeElement selector="{{StorefrontCategoryProductSection.ProductAddToCartByName(product.name)}}" stepKey="AssertAddToCart" /> | ||
</actionGroup> | ||
</actionGroups> |
71 changes: 71 additions & 0 deletions
71
...ts/functional/Magento/FunctionalTest/Catalog/ActionGroup/StorefrontCompareActionGroup.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,71 @@ | ||
<?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="../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Test/etc/actionGroupSchema.xsd"> | ||
<!-- Add Product to Compare from the category page and check message --> | ||
<actionGroup name="StorefrontAddCategoryProductToCompareActionGroup"> | ||
<arguments> | ||
<argument name="productVar"/> | ||
</arguments> | ||
<moveMouseOver selector="{{StorefrontCategoryProductSection.ProductInfoByName(productVar.name)}}" stepKey="moveMouseOverProduct" /> | ||
<click selector="{{StorefrontCategoryProductSection.ProductAddToCompareByName(productVar.name)}}" stepKey="clickAddProductToCompare"/> | ||
<waitForElement selector="{{StorefrontMessagesSection.success}}" time="30" stepKey="waitForAddCategoryProductToCompareSuccessMessage"/> | ||
<see selector="{{StorefrontMessagesSection.success}}" userInput="You added product {{productVar.name}} to the comparison list." stepKey="assertAddCategoryProductToCompareSuccessMessage"/> | ||
</actionGroup> | ||
|
||
<!-- Add Product to Compare from the product page and check message --> | ||
<actionGroup name="StorefrontAddProductToCompareActionGroup"> | ||
<arguments> | ||
<argument name="productVar"/> | ||
</arguments> | ||
<click selector="{{StorefrontProductInfoMainSection.productAddToCompare}}" stepKey="clickAddToCompare" /> | ||
<waitForElement selector="{{StorefrontMessagesSection.success}}" time="30" stepKey="waitForAddProductToCompareSuccessMessage"/> | ||
<see selector="{{StorefrontMessagesSection.success}}" userInput="You added product {{productVar.name}} to the comparison list." stepKey="assertAddProductToCompareSuccessMessage"/> | ||
</actionGroup> | ||
|
||
<!-- Check the product in compare sidebar --> | ||
<actionGroup name="StorefrontCheckCompareSidebarProductActionGroup"> | ||
<arguments> | ||
<argument name="productVar"/> | ||
</arguments> | ||
<waitForElement selector="{{StorefrontComparisonSidebarSection.ProductTitleByName(productVar.name)}}" stepKey="waitForProduct"/> | ||
</actionGroup> | ||
|
||
<!-- Open and check comparison page --> | ||
<actionGroup name="StorefrontOpenAndCheckComparisionActionGroup"> | ||
<click selector="{{StorefrontComparisonSidebarSection.Compare}}" stepKey="clickCompare"/> | ||
<waitForLoadingMaskToDisappear stepKey="waitForComparePageloaded" /> | ||
<seeInCurrentUrl url="{{StorefrontProductComparePage.url}}" stepKey="checkUrl"/> | ||
<seeInTitle userInput="Products Comparison List" stepKey="assertPageNameInTitle"/> | ||
<see userInput="Compare Products" selector="{{StorefrontProductCompareMainSection.PageName}}" stepKey="assertPageName"/> | ||
</actionGroup> | ||
|
||
<!-- Check the simple product in comparison page --> | ||
<actionGroup name="StorefrontCheckCompareSimpleProductActionGroup"> | ||
<arguments> | ||
<argument name="productVar"/> | ||
</arguments> | ||
<seeElement selector="{{StorefrontProductCompareMainSection.ProductLinkByName(productVar.name)}}" stepKey="assertProductName"/> | ||
<see userInput="${{productVar.price}}.00" selector="{{StorefrontProductCompareMainSection.ProductPriceByName(productVar.name)}}" stepKey="assertProductPrice"/> | ||
<see userInput="{{productVar.sku}}" selector="{{StorefrontProductCompareMainSection.ProductAttributeByCodeAndProductName('SKU', productVar.name)}}" stepKey="assertProductPrice"/> | ||
<!-- @TODO: MAGETWO-80272 Move to Magento_Checkout --> | ||
<seeElement selector="{{StorefrontProductCompareMainSection.ProductAddToCartByName(productVar.name)}}" stepKey="assertProductAddToCart"/> | ||
</actionGroup> | ||
|
||
<!-- Clear the compare list --> | ||
<actionGroup name="StorefrontClearCompareActionGroup"> | ||
<waitForElementVisible selector="{{StorefrontComparisonSidebarSection.ClearAll}}" time="30" stepKey="waitForClearAll"/> | ||
<click selector="{{StorefrontComparisonSidebarSection.ClearAll}}" stepKey="clickClearAll"/> | ||
<waitForElementVisible selector="{{ModalConfirmationSection.OkButton}}" time="30" stepKey="waitForClearOk"/> | ||
<scrollTo selector="{{ModalConfirmationSection.OkButton}}" stepKey="scrollToClearOk"/> | ||
<click selector="{{ModalConfirmationSection.OkButton}}" stepKey="clickClearOk"/> | ||
<waitForElement selector="{{StorefrontMessagesSection.message('You cleared the comparison list.')}}" time="30" stepKey="AssertMessageCleared"/> | ||
<waitForElement selector="{{StorefrontComparisonSidebarSection.NoItemsMessage}}" time="30" stepKey="assertNoItems"/> | ||
</actionGroup> | ||
</actionGroups> |
26 changes: 26 additions & 0 deletions
26
...ts/functional/Magento/FunctionalTest/Catalog/ActionGroup/StorefrontProductActionGroup.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,26 @@ | ||
<?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="../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Test/etc/actionGroupSchema.xsd"> | ||
<!-- Check the simple product on the product page --> | ||
<actionGroup name="StorefrontCheckSimpleProduct"> | ||
<arguments> | ||
<argument name="product"/> | ||
</arguments> | ||
<seeInCurrentUrl url="/{{product.custom_attributes[url_key]}}.html" stepKey="checkUrl"/> | ||
<seeInTitle userInput="{{product.name}}" stepKey="AssertProductNameInTitle"/> | ||
<see userInput="{{product.name}}" selector="{{StorefrontProductInfoMainSection.productName}}" stepKey="assertProductName"/> | ||
<see userInput="{{product.sku}}" selector="{{StorefrontProductInfoMainSection.productSku}}" stepKey="assertProductSku"/> | ||
<see userInput="${{product.price}}.00" selector="{{StorefrontProductInfoMainSection.productPrice}}" stepKey="assertProductPrice"/> | ||
<see userInput="IN STOCK" selector="{{StorefrontProductInfoMainSection.productStockStatus}}" stepKey="assertInStock"/> | ||
<seeElement selector="{{StorefrontProductInfoMainSection.AddToCart}}" stepKey="assertAddToCart" /> | ||
<see userInput="{{product.custom_attributes[description]}}" selector="{{StorefrontProductInfoMainSection.productDescription}}" stepKey="assertProductDescription"/> | ||
<see userInput="{{product.custom_attributes[short_description]}}" selector="{{StorefrontProductInfoMainSection.productShortDescription}}" stepKey="assertProductShortDescription"/> | ||
</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
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
Oops, something went wrong.