|
1751 | 1751 | <seeElement selector="{{SlideOnBackend.messageContent('1', PageBuilderSlideItemContent_Slide1.value)}}" stepKey="seeSlideContentAfterHideShow"/>
|
1752 | 1752 | <seeElement selector="{{SlideOnBackend.backgroundColor('1', PageBuilderBackgroundColor_Plaintext_Green.rgb)}}" stepKey="seeSlideBackgroundColorAfterHideShow"/>
|
1753 | 1753 | </test>
|
| 1754 | + <test name="SlideItemInlineWysiwygUploadImage"> |
| 1755 | + <annotations> |
| 1756 | + <features value="PageBuilder"/> |
| 1757 | + <stories value="Slider"/> |
| 1758 | + <title value="Can Add Slider WYSIWYG Image From Gallery or Link to Image in Gallery After Page Has Been Saved"/> |
| 1759 | + <description value="A user should be able to upload image to inline wysiwyg after a slider has been saved to a page"/> |
| 1760 | + <severity value="CRITICAL"/> |
| 1761 | + <useCaseId value="MC-4323"/> |
| 1762 | + <testCaseId value="MC-5014"/> |
| 1763 | + <group value="pagebuilder"/> |
| 1764 | + <group value="pagebuilder-slide"/> |
| 1765 | + <group value="pagebuilder-slideItemCommon"/> |
| 1766 | + </annotations> |
| 1767 | + <before> |
| 1768 | + <actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/> |
| 1769 | + <magentoCLI command="config:set cms/wysiwyg/enabled enabled" stepKey="enableWYSIWYG"/> |
| 1770 | + <magentoCLI command="config:set cms/wysiwyg/editor mage/adminhtml/wysiwyg/tiny_mce/tinymce4Adapter" stepKey="enableTinyMCE4"/> |
| 1771 | + <createData entity="_defaultCmsPage" stepKey="createPreReqCMSPage"/> |
| 1772 | + <actionGroup ref="navigateToCreatedCMSPage" stepKey="navigateToContentCreatedCMSPage1"> |
| 1773 | + <argument name="CMSPage" value="$$createPreReqCMSPage$$"/> |
| 1774 | + </actionGroup> |
| 1775 | + </before> |
| 1776 | + <after> |
| 1777 | + <actionGroup ref="navigateToMediaGallery" stepKey="navigateToMediaGallery"/> |
| 1778 | + <actionGroup ref="NavigateToMediaFolderActionGroup" stepKey="NavigateToFolder"> |
| 1779 | + <argument name="FolderName" value="{{ImageFolder.name}}"/> |
| 1780 | + </actionGroup> |
| 1781 | + <actionGroup ref="DeleteImageFromStorageActionGroup" stepKey="DeleteImageFromStorage"> |
| 1782 | + <argument name="Image" value="PageBuilderImageProperty_StageJPG"/> |
| 1783 | + </actionGroup> |
| 1784 | + <deleteData createDataKey="createPreReqCMSPage" stepKey="deleteCreatePreReqCMSPage"/> |
| 1785 | + <actionGroup ref="logout" stepKey="logout"/> |
| 1786 | + </after> |
| 1787 | + <comment userInput="Add Slider" stepKey="commentAddContentType"/> |
| 1788 | + <actionGroup ref="expandPageBuilderPanelGroup" stepKey="expandPageBuilderPanelGroup"> |
| 1789 | + <argument name="group" value="PageBuilderSliderContentType"/> |
| 1790 | + </actionGroup> |
| 1791 | + <actionGroup ref="dragContentTypeToStageAndExpectEditPanel" stepKey="dragContentTypeOntoStage"> |
| 1792 | + <argument name="contentType" value="PageBuilderSliderContentType"/> |
| 1793 | + </actionGroup> |
| 1794 | + <actionGroup ref="closeEditPanelSettings" stepKey="closeEditPanelSettings"/> |
| 1795 | + <!-- Initial Save --> |
| 1796 | + <comment userInput="Initial Save" stepKey="commentInitialSave"/> |
| 1797 | + <actionGroup ref="saveAndContinueEditCmsPage" stepKey="initialSaveAndContinueEditCmsPage"/> |
| 1798 | + <actionGroup ref="switchToPageBuilderStage" stepKey="initialSwitchToPageBuilderStage"/> |
| 1799 | + <click selector="{{PageBuilderPanel.searchPanel}}" stepKey="unFocusEditor"/> |
| 1800 | + <waitForPageLoad stepKey="waitForPageLoad"/> |
| 1801 | + <!-- Add Image to Slide --> |
| 1802 | + <comment userInput="Add Image to Slide" stepKey="commentAddImageToContentType"/> |
| 1803 | + <click selector="{{PageBuilderStage.inlineWYSIWYGEditor(PageBuilderSlideContentType.role, '1')}}" stepKey="focusOnEditorArea"/> |
| 1804 | + <waitForPageLoad stepKey="waitForInlineWYSIWYGEditor"/> |
| 1805 | + <click selector="{{WYSIWYGOnPageBuilderInline.imageSelector}}" stepKey="clickWYSIWYGImageSelector"/> |
| 1806 | + <waitForPageLoad stepKey="waitForImageSelectorModal"/> |
| 1807 | + <click selector="{{WYSIWYGOnPageBuilderInline.imageSelectorBrowse}}" stepKey="clickWYSIWYGImageSelectorBrowseButton"/> |
| 1808 | + <waitForPageLoad stepKey="waitForImageSelectorBrowseModal"/> |
| 1809 | + <click selector="{{MediaGallerySection.StorageRootArrow}}" stepKey="clickStorageRoot"/> |
| 1810 | + <waitForPageLoad stepKey="waitForStorageRoot"/> |
| 1811 | + <actionGroup ref="CreateImageFolder" stepKey="createImageFolder"> |
| 1812 | + <argument name="ImageFolder" value="ImageFolder"/> |
| 1813 | + </actionGroup> |
| 1814 | + <actionGroup ref="attachImage" stepKey="SelectImageFromMediaStorage"> |
| 1815 | + <argument name="Image" value="PageBuilderImageProperty_StageJPG"/> |
| 1816 | + </actionGroup> |
| 1817 | + <actionGroup ref="saveImage" stepKey="saveImage"/> |
| 1818 | + <actionGroup ref="fillOutUploadImagePopup" stepKey="fillOutUploadImagePopup"/> |
| 1819 | + <click selector="{{PageBuilderPanel.searchPanel}}" stepKey="unFocusSlide"/> |
| 1820 | + <waitForPageLoad stepKey="waitForSlideToUnFocus"/> |
| 1821 | + <!-- Validate Image Editor On Backend --> |
| 1822 | + <comment userInput="Validate Image Editor On Backend" stepKey="commentValidateBackend"/> |
| 1823 | + <seeElement selector="{{SlideOnBackend.inlineWYSIWYGEditorWithTag('1', 'img')}}" stepKey="validateImageInEditor"/> |
| 1824 | + <actionGroup ref="saveAndContinueEditCmsPage" stepKey="saveAndContinueEditCmsPage"/> |
| 1825 | + <actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage"/> |
| 1826 | + <!-- Validate Image Editor On Backend After Save Page --> |
| 1827 | + <comment userInput="Validate Image Editor On Backend After Save" stepKey="commentValidateBackendAfterSave"/> |
| 1828 | + <seeElement selector="{{SlideOnBackend.inlineWYSIWYGEditorWithTag('1', 'img')}}" stepKey="validateImageInEditorAfterSave"/> |
| 1829 | + <!-- Validate Image Editor On Storefront --> |
| 1830 | + <comment userInput="Validate Image Editor On Storefront" stepKey="commentValidateStorefront"/> |
| 1831 | + <amOnPage url="$$createPreReqCMSPage.identifier$$" stepKey="amOnCmsStorefront"/> |
| 1832 | + <waitForPageLoad stepKey="waitForPageLoad4"/> |
| 1833 | + <seeElement selector="{{SlideOnFrontend.messageContentTextAreaImage('1', PageBuilderImageProperty_StageJPG.value)}}" stepKey="validateImageFrontEnd"/> |
| 1834 | + </test> |
1754 | 1835 | </tests>
|
0 commit comments