forked from magento/graphql-ce
-
Notifications
You must be signed in to change notification settings - Fork 0
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
- Loading branch information
Showing
60 changed files
with
2,490 additions
and
149 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
...tests/acceptance/tests/functional/Magento/FunctionalTest/Backend/Page/AdminLogoutPage.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="../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Page/etc/PageObject.xsd"> | ||
<page name="AdminLogoutPage" url="admin/auth/logout/" area="admin" module="Magento_Backend"> | ||
<section name="removeAfterMqe-896"/> | ||
</page> | ||
</pages> |
13 changes: 13 additions & 0 deletions
13
...tance/tests/functional/Magento/FunctionalTest/Backend/Section/AdminMainActionsSection.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,13 @@ | ||
<?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="../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Page/etc/SectionObject.xsd"> | ||
<section name="AdminMainActionsSection"> | ||
</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
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
111 changes: 111 additions & 0 deletions
111
...tional/Magento/FunctionalTest/Bundle/Test/AdminAddRemoveProductImageBundleProductTest.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,111 @@ | ||
<?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="../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Test/etc/testSchema.xsd"> | ||
<test name="AdminAddRemoveProductImageBundleProductTest"> | ||
<annotations> | ||
<features value="Bundle"/> | ||
<stories value="Bundle Product Add/Remove Images"/> | ||
<title value="Admin should be able to add/remove images for a Bundle Product"/> | ||
<description value="Admin should be able to add/remove images for a Bundle Product"/> | ||
<severity value="MAJOR"/> | ||
<testCaseId value="MC-115"/> | ||
<group value="Bundle"/> | ||
</annotations> | ||
<before> | ||
<actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/> | ||
<createData entity="SimpleProduct2" stepKey="simpleProduct1"/> | ||
<createData entity="SimpleProduct2" stepKey="simpleProduct2"/> | ||
</before> | ||
<after> | ||
<amOnPage url="{{AdminLogoutPage.url}}" stepKey="amOnLogoutPage"/> | ||
<deleteData createDataKey="simpleProduct1" stepKey="deleteSimpleProduct1"/> | ||
<deleteData createDataKey="simpleProduct2" stepKey="deleteSimpleProduct2"/> | ||
</after> | ||
|
||
<!-- Create a bundle product --> | ||
<amOnPage url="{{AdminProductIndexPage.url}}" stepKey="visitAdminProductPageBundle"/> | ||
<waitForPageLoad stepKey="waitForProductPageLoadBundle"/> | ||
<actionGroup ref="goToCreateProductPage" stepKey="goToCreateBundleProduct"> | ||
<argument name="product" value="BundleProduct"/> | ||
</actionGroup> | ||
|
||
<actionGroup ref="fillProductNameAndSkuInProductForm" stepKey="fillBundleProductNameAndSku"> | ||
<argument name="product" value="BundleProduct"/> | ||
</actionGroup> | ||
|
||
<!-- Add two bundle items --> | ||
<conditionalClick selector="{{AdminProductFormBundleSection.bundleItemsToggle}}" dependentSelector="{{AdminProductFormBundleSection.bundleItemsToggle}}" visible="false" stepKey="conditionallyOpenSectionBundleItems"/> | ||
<click selector="{{AdminProductFormBundleSection.addOption}}" stepKey="clickAddOption3"/> | ||
<waitForElementVisible selector="{{AdminProductFormBundleSection.bundleOptionXTitle('0')}}" stepKey="waitForBundleOptions"/> | ||
<fillField selector="{{AdminProductFormBundleSection.bundleOptionXTitle('0')}}" userInput="{{BundleProduct.optionTitle1}}" stepKey="fillOptionTitle"/> | ||
<selectOption selector="{{AdminProductFormBundleSection.bundleOptionXInputType('0')}}" userInput="{{BundleProduct.optionInputType1}}" stepKey="selectInputType"/> | ||
<waitForElementVisible selector="{{AdminProductFormBundleSection.addProductsToOption}}" stepKey="waitForAddProductsToBundle"/> | ||
<click selector="{{AdminProductFormBundleSection.addProductsToOption}}" stepKey="clickAddProductsToOption"/> | ||
<waitForPageLoad stepKey="waitForPageLoadAfterBundleProducts"/> | ||
<actionGroup ref="filterProductGridBySku" stepKey="filterBundleProductOptions"> | ||
<argument name="product" value="$$simpleProduct1$$"/> | ||
</actionGroup> | ||
<checkOption selector="{{AdminAddProductsToOptionPanel.firstCheckbox}}" stepKey="selectFirstGridRow"/> | ||
<actionGroup ref="filterProductGridBySku" stepKey="filterBundleProductOptions2"> | ||
<argument name="product" value="$$simpleProduct2$$"/> | ||
</actionGroup> | ||
<checkOption selector="{{AdminAddProductsToOptionPanel.firstCheckbox}}" stepKey="selectFirstGridRow2"/> | ||
<click selector="{{AdminAddProductsToOptionPanel.addSelectedProducts}}" stepKey="clickAddSelectedBundleProducts"/> | ||
<fillField selector="{{AdminProductFormBundleSection.bundleOptionXProductYQuantity('0', '0')}}" userInput="{{BundleProduct.defaultQuantity}}" stepKey="fillProductDefaultQty1"/> | ||
<fillField selector="{{AdminProductFormBundleSection.bundleOptionXProductYQuantity('0', '1')}}" userInput="{{BundleProduct.defaultQuantity}}" stepKey="fillProductDefaultQty2"/> | ||
|
||
<!-- Add image to product --> | ||
<actionGroup ref="addProductImage" stepKey="addImageForProduct"> | ||
<argument name="image" value="MagentoLogo"/> | ||
</actionGroup> | ||
|
||
<!--Save product--> | ||
<actionGroup ref="saveProductForm" stepKey="saveProduct"/> | ||
|
||
<!-- Assert product image in admin product form --> | ||
<actionGroup ref="assertProductImageAdminProductPage" stepKey="assertProductImageAdminProductPage"/> | ||
|
||
<!-- Assert product in storefront product page --> | ||
<actionGroup ref="AssertProductNameAndSkuInStorefrontProductPage" stepKey="AssertProductInStorefrontProductPage"> | ||
<argument name="product" value="BundleProduct"/> | ||
</actionGroup> | ||
|
||
<!-- Assert product image in storefront product page --> | ||
<actionGroup ref="assertProductImageStorefrontProductPage" stepKey="assertProductImageStorefrontProductPage"> | ||
<argument name="product" value="BundleProduct"/> | ||
<argument name="image" value="MagentoLogo"/> | ||
</actionGroup> | ||
|
||
<!-- Remove image from product --> | ||
<amOnPage url="{{AdminProductIndexPage.url}}" stepKey="adminProductIndexPageRemove"/> | ||
<waitForPageLoad stepKey="waitForProductIndexPageLoad2"/> | ||
<actionGroup ref="filterProductGridBySku" stepKey="filterProductGridBySku"> | ||
<argument name="product" value="BundleProduct"/> | ||
</actionGroup> | ||
<actionGroup ref="openProducForEditByClickingRowXColumnYInProductGrid" stepKey="openProducForEditByClickingRow1Column2InProductGrid"/> | ||
<actionGroup ref="removeProductImage" stepKey="removeProductImage"/> | ||
|
||
<!-- Skip success message check when saving product because of bug MAGETWO-91177 --> | ||
<!-- actionGroup ref="saveProductForm" stepKey="saveProductFormAfterRemove"/--> | ||
<click selector="{{AdminProductFormActionSection.saveButton}}" stepKey="saveProductFormAfterRemove"/> | ||
|
||
<!-- Assert product image not in admin product form --> | ||
<actionGroup ref="assertProductImageNotInAdminProductPage" stepKey="assertProductImageNotInAdminProductPage"/> | ||
|
||
<!-- Assert product in storefront product page --> | ||
<actionGroup ref="AssertProductNameAndSkuInStorefrontProductPage" stepKey="AssertProductInStorefrontProductPageAfterRemove"> | ||
<argument name="product" value="BundleProduct"/> | ||
</actionGroup> | ||
<!-- Assert product image not in storefront product page --> | ||
<actionGroup ref="assertProductImageNotInStorefrontProductPage" stepKey="assertProductImageNotInStorefrontProductPage"> | ||
<argument name="product" value="BundleProduct"/> | ||
</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
Oops, something went wrong.