-
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.
Merge pull request #3763 from magento-tsg/2.2-develop-pr77
[TSG] Backporting for 2.2 (pr77) (2.2)
- Loading branch information
Showing
44 changed files
with
942 additions
and
165 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
14 changes: 14 additions & 0 deletions
14
app/code/Magento/Catalog/Test/Mftf/Page/AdminProductUpdateAttributesPage.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,14 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
/** | ||
* Copyright © Magento, Inc. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
--> | ||
<pages xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Page/etc/PageObject.xsd"> | ||
<page name="AdminProductUpdateAttributesPage" url="catalog/product_action_attribute/edit/" area="admin" module="Magento_Catalog"> | ||
<section name="AdminUpdateAttributesHeaderSection"/> | ||
<section name="AdminUpdateAttributesWebsiteSection"/> | ||
</page> | ||
</pages> |
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
17 changes: 17 additions & 0 deletions
17
app/code/Magento/Catalog/Test/Mftf/Section/AdminUpdateAttributesSection.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,17 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
/** | ||
* Copyright © Magento, Inc. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
--> | ||
<sections xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Page/etc/SectionObject.xsd"> | ||
<section name="AdminUpdateAttributesHeaderSection"> | ||
<element name="saveButton" type="button" selector="button[data-ui-id='page-actions-toolbar-save-button']" timeout="30"/> | ||
</section> | ||
<section name="AdminUpdateAttributesWebsiteSection"> | ||
<element name="website" type="button" selector="#attributes_update_tabs_websites"/> | ||
<element name="addProductToWebsite" type="checkbox" selector="#add-products-to-website-content .website-checkbox"/> | ||
</section> | ||
</sections> |
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
54 changes: 54 additions & 0 deletions
54
...gento/Catalog/Test/Mftf/Test/StorefrontProductAvailableAfterEnablingSubCategoriesTest.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,54 @@ | ||
<?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="StorefrontProductAvailableAfterEnablingSubCategoriesTest"> | ||
<annotations> | ||
<features value="Catalog"/> | ||
<stories value="Show category products on storefront"/> | ||
<title value="Check that parent categories are showing products after enabling subcategories"/> | ||
<description value="Check that parent categories are showing products after enabling subcategories"/> | ||
<severity value="MAJOR"/> | ||
<testCaseId value="MC-13914"/> | ||
<useCaseId value="MAGETWO-96489"/> | ||
<group value="Catalog"/> | ||
</annotations> | ||
<before> | ||
<createData entity="_defaultCategory" stepKey="createCategory"/> | ||
<createData entity="SubCategoryWithParent" stepKey="createSubCategory"> | ||
<requiredEntity createDataKey="createCategory"/> | ||
<field key="is_active">false</field> | ||
</createData> | ||
<createData entity="ApiSimpleProduct" stepKey="createSimpleProduct"> | ||
<requiredEntity createDataKey="createSubCategory"/> | ||
</createData> | ||
<actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/> | ||
</before> | ||
<after> | ||
<deleteData createDataKey="createSimpleProduct" stepKey="deleteSimpleProduct"/> | ||
<deleteData createDataKey="createCategory" stepKey="deleteCategory"/> | ||
<actionGroup ref="logout" stepKey="logout"/> | ||
</after> | ||
<!--Check anchor category is empty--> | ||
<actionGroup ref="StorefrontCheckEmptyCategoryActionGroup" stepKey="checkEmptyAnchorCategory"> | ||
<argument name="category" value="$$createCategory$$"/> | ||
<argument name="productCount" value="0"/> | ||
</actionGroup> | ||
<!--Enable subcategory--> | ||
<actionGroup ref="AdminNavigateToCategoryInTree" stepKey="openCreatedSubCategory"> | ||
<argument name="category" value="$$createSubCategory$$"/> | ||
</actionGroup> | ||
<click selector="{{AdminCategoryBasicFieldSection.enableCategoryLabel}}" stepKey="enableCategory"/> | ||
<actionGroup ref="saveCategoryForm" stepKey="saveCategory"/> | ||
<!--Check created product in anchor category on storefront--> | ||
<amOnPage url="{{StorefrontCategoryPage.url($$createCategory.name$$)}}" stepKey="goToCategoryStorefront"/> | ||
<actionGroup ref="StorefrontCheckCategorySimpleProduct" stepKey="seeCreatedProduct"> | ||
<argument name="product" value="$$createSimpleProduct$$"/> | ||
</actionGroup> | ||
</test> | ||
</tests> |
Oops, something went wrong.