-
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 #3922 from magento-trigger/MC-5784
- Fixed MC-5784: Image fields using imageUploader UIComponent cannot use gallery image
- Loading branch information
Showing
4 changed files
with
172 additions
and
17 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
23 changes: 23 additions & 0 deletions
23
app/code/Magento/Theme/Test/Mftf/ActionGroup/NavigateToFaviconMediaFolderActionGroup.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,23 @@ | ||
<?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="NavigateToFaviconMediaFolderActionGroup"> | ||
<arguments> | ||
<argument name="StoreFolder" type="string"/> | ||
</arguments> | ||
<conditionalClick selector="{{MediaGallerySection.StorageRootArrow}}" dependentSelector="{{MediaGallerySection.checkIfArrowExpand}}" stepKey="clickArrowIfClosed" visible="true"/> | ||
<waitForElement selector="{{AdminDesignConfigSection.faviconArrow}}" stepKey="waitForFaviconFolder"/> | ||
<conditionalClick selector="{{AdminDesignConfigSection.faviconArrow}}" dependentSelector="{{AdminDesignConfigSection.checkIfFaviconArrowExpand}}" stepKey="clickFaviconArrowIfClosed" visible="true"/> | ||
<waitForElement selector="{{AdminDesignConfigSection.storesArrow}}" stepKey="waitForStoresFolder"/> | ||
<conditionalClick selector="{{AdminDesignConfigSection.storesArrow}}" dependentSelector="{{AdminDesignConfigSection.checkIfStoresArrowExpand}}" stepKey="clickStoresArrowIfClosed" visible="true"/> | ||
<waitForElement selector="{{StoreFolder}}" stepKey="waitForStoreFolder"/> | ||
<click selector="{{StoreFolder}}" stepKey="clickOnCreatedFolder"/> | ||
<waitForLoadingMaskToDisappear stepKey="waitForLoading"/> | ||
</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
78 changes: 78 additions & 0 deletions
78
app/code/Magento/Theme/Test/Mftf/Test/AdminDesignConfigMediaGalleryImageUploadTest.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,78 @@ | ||
<?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="AdminDesignConfigMediaGalleryImageUploadTest"> | ||
<annotations> | ||
<features value="Content"/> | ||
<stories value="Content"/> | ||
<title value="MC-5784: Image fields using imageUploader UIComponent cannot use gallery image"/> | ||
<description value="Admin should be able to use Image Uploader to add Gallery Images"/> | ||
<severity value="MAJOR"/> | ||
<testCaseId value="MC-13832"/> | ||
<group value="Content"/> | ||
</annotations> | ||
<before> | ||
<actionGroup ref="LoginAsAdmin" stepKey="loginToAdminArea"/> | ||
</before> | ||
<after> | ||
<actionGroup ref="logout" stepKey="logoutOfAdmin"/> | ||
</after> | ||
<!--Edit Store View--> | ||
<comment userInput="Edit Store View" stepKey="editStoreViewComment"/> | ||
<amOnPage url="{{DesignConfigPage.url}}" stepKey="navigateToDesignConfigPage" /> | ||
<waitForPageLoad stepKey="waitForPageload1"/> | ||
<click selector="{{AdminDesignConfigSection.scopeRow('3')}}" stepKey="editStoreView"/> | ||
<waitForPageLoad stepKey="waitForPageload2"/> | ||
<scrollTo selector="{{AdminDesignConfigSection.htmlHeaderSection}}" stepKey="scrollToHtmlHeadSection"/> | ||
<click selector="{{AdminDesignConfigSection.htmlHeaderSection}}" stepKey="openHtmlHeadSection"/> | ||
<!--Upload Image--> | ||
<comment userInput="Upload Image" stepKey="uploadImageComment"/> | ||
<click selector="{{AdminDesignConfigSection.selectFromGalleryByFieldsetName('Head')}}" stepKey="openMediaGallery"/> | ||
<actionGroup ref="VerifyMediaGalleryStorageActions" stepKey="verifyMediaGalleryStorageBtn"/> | ||
<actionGroup ref="NavigateToMediaFolderActionGroup" stepKey="navigateToFolder"> | ||
<argument name="FolderName" value="Storage Root"/> | ||
</actionGroup> | ||
<actionGroup ref="attachImage" stepKey="selectImageFromMediaStorage"> | ||
<argument name="Image" value="ImageUpload3"/> | ||
</actionGroup> | ||
<actionGroup ref="saveImage" stepKey="insertImage"/> | ||
<click selector="{{AdminDesignConfigSection.saveConfiguration}}" stepKey="saveConfiguration"/> | ||
<waitForElementVisible selector="{{AdminDesignConfigSection.successNotification}}" stepKey="waitForSuccessNotification"/> | ||
<waitForPageLoad stepKey="waitForPageloadSuccess"/> | ||
<!--Edit Store View--> | ||
<comment userInput="Edit Store View" stepKey="editStoreViewComment2"/> | ||
<click selector="{{AdminDesignConfigSection.scopeRow('3')}}" stepKey="editStoreView2"/> | ||
<waitForPageLoad stepKey="waitForPageload3"/> | ||
<scrollTo selector="{{AdminDesignConfigSection.htmlHeaderSection}}" stepKey="scrollToHtmlHeadSection2"/> | ||
<click selector="{{AdminDesignConfigSection.htmlHeaderSection}}" stepKey="openHtmlHeadSection2"/> | ||
<!--Save Default Configuration--> | ||
<comment userInput="Save Default Configuration" stepKey="saveDefaultConfigurationComment"/> | ||
<click selector="{{AdminDesignConfigSection.useDefaultByFieldsetName('Head')}}" stepKey="clickUseDefault"/> | ||
<waitForElementVisible selector="{{AdminDesignConfigSection.saveConfiguration}}" stepKey="waitForWrapperToClose2"/> | ||
<click selector="{{AdminDesignConfigSection.saveConfiguration}}" stepKey="saveConfiguration2"/> | ||
<waitForElementVisible selector="{{AdminDesignConfigSection.successNotification}}" stepKey="waitForSuccessNotification2"/> | ||
<waitForPageLoad stepKey="waitForPageloadSuccess2"/> | ||
<!--Delete Image: will be in both root and favicon--> | ||
<comment userInput="Delete Image" stepKey="deleteImageComment"/> | ||
<actionGroup ref="navigateToMediaGallery" stepKey="navigateToMediaGallery"/> | ||
<actionGroup ref="NavigateToMediaFolderActionGroup" stepKey="navigateToFolder2"> | ||
<argument name="FolderName" value="Storage Root"/> | ||
</actionGroup> | ||
<actionGroup ref="DeleteImageFromStorageActionGroup" stepKey="deleteImageFromStorage"> | ||
<argument name="Image" value="ImageUpload3"/> | ||
</actionGroup> | ||
<actionGroup ref="NavigateToFaviconMediaFolderActionGroup" stepKey="navigateToFolder3"> | ||
<argument name="StoreFolder" value="{{AdminDesignConfigSection.storeLink}}"/> | ||
</actionGroup> | ||
<actionGroup ref="DeleteImageFromStorageActionGroup" stepKey="deleteImageFromStorage2"> | ||
<argument name="Image" value="ImageUpload3"/> | ||
</actionGroup> | ||
</test> | ||
</tests> |