|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<!-- |
| 3 | + /** |
| 4 | + * Copyright © Magento, Inc. All rights reserved. |
| 5 | + * See COPYING.txt for license details. |
| 6 | + */ |
| 7 | +--> |
| 8 | + |
| 9 | +<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 10 | + xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd"> |
| 11 | + <test name="AdminDesignConfigMediaGalleryImageUploadTest"> |
| 12 | + <annotations> |
| 13 | + <features value="Content"/> |
| 14 | + <stories value="Content"/> |
| 15 | + <title value="MC-5784: Image fields using imageUploader UIComponent cannot use gallery image"/> |
| 16 | + <description value="Admin should be able to use Image Uploader to add Gallery Images"/> |
| 17 | + <severity value="MAJOR"/> |
| 18 | + <testCaseId value="MC-13832"/> |
| 19 | + <group value="Content"/> |
| 20 | + </annotations> |
| 21 | + <before> |
| 22 | + <actionGroup ref="LoginAsAdmin" stepKey="loginToAdminArea"/> |
| 23 | + </before> |
| 24 | + <after> |
| 25 | + <actionGroup ref="logout" stepKey="logoutOfAdmin"/> |
| 26 | + </after> |
| 27 | + <!--Edit Store View--> |
| 28 | + <comment userInput="Edit Store View" stepKey="editStoreViewComment"/> |
| 29 | + <amOnPage url="{{DesignConfigPage.url}}" stepKey="navigateToDesignConfigPage" /> |
| 30 | + <waitForPageLoad stepKey="waitForPageload1"/> |
| 31 | + <click selector="{{AdminDesignConfigSection.scopeRow('3')}}" stepKey="editStoreView"/> |
| 32 | + <waitForPageLoad stepKey="waitForPageload2"/> |
| 33 | + <scrollTo selector="{{AdminDesignConfigSection.htmlHeaderSection}}" stepKey="scrollToHtmlHeadSection"/> |
| 34 | + <click selector="{{AdminDesignConfigSection.htmlHeaderSection}}" stepKey="openHtmlHeadSection"/> |
| 35 | + <!--Upload Image--> |
| 36 | + <comment userInput="Upload Image" stepKey="uploadImageComment"/> |
| 37 | + <click selector="{{AdminDesignConfigSection.selectFromGalleryByFieldsetName('Head')}}" stepKey="openMediaGallery"/> |
| 38 | + <actionGroup ref="VerifyMediaGalleryStorageActions" stepKey="verifyMediaGalleryStorageBtn"/> |
| 39 | + <actionGroup ref="NavigateToMediaFolderActionGroup" stepKey="navigateToFolder"> |
| 40 | + <argument name="FolderName" value="Storage Root"/> |
| 41 | + </actionGroup> |
| 42 | + <actionGroup ref="attachImage" stepKey="selectImageFromMediaStorage"> |
| 43 | + <argument name="Image" value="ImageUpload3"/> |
| 44 | + </actionGroup> |
| 45 | + <actionGroup ref="saveImage" stepKey="insertImage"/> |
| 46 | + <click selector="{{AdminDesignConfigSection.saveConfiguration}}" stepKey="saveConfiguration"/> |
| 47 | + <waitForElementVisible selector="{{AdminDesignConfigSection.successNotification}}" stepKey="waitForSuccessNotification"/> |
| 48 | + <waitForPageLoad stepKey="waitForPageloadSuccess"/> |
| 49 | + <!--Edit Store View--> |
| 50 | + <comment userInput="Edit Store View" stepKey="editStoreViewComment2"/> |
| 51 | + <click selector="{{AdminDesignConfigSection.scopeRow('3')}}" stepKey="editStoreView2"/> |
| 52 | + <waitForPageLoad stepKey="waitForPageload3"/> |
| 53 | + <scrollTo selector="{{AdminDesignConfigSection.htmlHeaderSection}}" stepKey="scrollToHtmlHeadSection2"/> |
| 54 | + <click selector="{{AdminDesignConfigSection.htmlHeaderSection}}" stepKey="openHtmlHeadSection2"/> |
| 55 | + <!--Save Default Configuration--> |
| 56 | + <comment userInput="Save Default Configuration" stepKey="saveDefaultConfigurationComment"/> |
| 57 | + <click selector="{{AdminDesignConfigSection.useDefaultByFieldsetName('Head')}}" stepKey="clickUseDefault"/> |
| 58 | + <waitForElementVisible selector="{{AdminDesignConfigSection.saveConfiguration}}" stepKey="waitForWrapperToClose2"/> |
| 59 | + <click selector="{{AdminDesignConfigSection.saveConfiguration}}" stepKey="saveConfiguration2"/> |
| 60 | + <waitForElementVisible selector="{{AdminDesignConfigSection.successNotification}}" stepKey="waitForSuccessNotification2"/> |
| 61 | + <waitForPageLoad stepKey="waitForPageloadSuccess2"/> |
| 62 | + <!--Delete Image: will be in both root and favicon--> |
| 63 | + <comment userInput="Delete Image" stepKey="deleteImageComment"/> |
| 64 | + <actionGroup ref="navigateToMediaGallery" stepKey="navigateToMediaGallery"/> |
| 65 | + <actionGroup ref="NavigateToMediaFolderActionGroup" stepKey="navigateToFolder2"> |
| 66 | + <argument name="FolderName" value="Storage Root"/> |
| 67 | + </actionGroup> |
| 68 | + <actionGroup ref="DeleteImageFromStorageActionGroup" stepKey="deleteImageFromStorage"> |
| 69 | + <argument name="Image" value="ImageUpload3"/> |
| 70 | + </actionGroup> |
| 71 | + <actionGroup ref="NavigateToFaviconMediaFolderActionGroup" stepKey="navigateToFolder3"> |
| 72 | + <argument name="StoreFolder" value="{{AdminDesignConfigSection.storeLink}}"/> |
| 73 | + </actionGroup> |
| 74 | + <actionGroup ref="DeleteImageFromStorageActionGroup" stepKey="deleteImageFromStorage2"> |
| 75 | + <argument name="Image" value="ImageUpload3"/> |
| 76 | + </actionGroup> |
| 77 | + </test> |
| 78 | +</tests> |
0 commit comments